mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-12 23:01:15 +00:00
[feature] update the pre-commit configuration
This commit is contained in:
parent
27f1671841
commit
864a407964
1 changed files with 28 additions and 4 deletions
|
|
@ -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",
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue