[feature] update the pre-commit configuration

This commit is contained in:
ZhaoyangLiu-Leo 2024-07-17 19:54:06 +08:00
parent 27f1671841
commit 864a407964

View file

@ -16,10 +16,10 @@ repos:
- id: fix-encoding-pragma
- id: detect-private-key
- id: trailing-whitespace
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-symlinks
- id: mixed-line-ending
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.0
hooks:
@ -102,3 +102,27 @@ repos:
hooks:
- id: pyroma
args: [ --min=10, . ]
- repo: https://github.com/pappasam/toml-sort
rev: v0.23.1
hooks:
- id: toml-sort-fix
exclude: ".*poetry.lock"
- repo: https://github.com/srstevenson/nb-clean
rev: 3.1.0
hooks:
- id: nb-clean
args: [ --preserve-cell-outputs, --remove-empty-cells ]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
additional_dependencies: [ tomli ]
exclude: |
poetry.lock|
(\/.*?\.[\w:]+)/pyproject.toml|
(\/.*?\.[\w:]+)/poetry.lock
args:
[
"--ignore-words-list",
"astroid,gallary,momento,narl,ot,rouge,nin,gere,asend",
]