Add pre-commit

This commit is contained in:
purple_emily
2024-03-08 14:34:53 +00:00
parent cd0e719b44
commit 31e16df720

30
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,30 @@
ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: 'pre-commit-ci'
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: weekly
skip: []
submodules: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-json
- id: check-toml
- id: check-xml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
exclude: ^src/node/consumer/test/
args: ["-L", "strem,chage"]