mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-06 08:16:00 +00:00
114 lines
3 KiB
YAML
114 lines
3 KiB
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.3.0
|
|
hooks:
|
|
- id: check-ast
|
|
- id: sort-simple-yaml
|
|
- id: check-yaml
|
|
exclude: |
|
|
(?x)^(
|
|
meta.yaml
|
|
)$
|
|
- id: check-xml
|
|
- id: check-toml
|
|
- id: check-docstring-first
|
|
- id: check-json
|
|
- id: detect-private-key
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
files: \.py$
|
|
- id: check-merge-conflict
|
|
- id: check-symlinks
|
|
- id: mixed-line-ending
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v1.7.0
|
|
hooks:
|
|
- id: mypy
|
|
exclude:
|
|
(?x)(
|
|
pb2\.py$
|
|
| grpc\.py$
|
|
| ^docs
|
|
| \.html$
|
|
)
|
|
args: [ --disallow-untyped-defs,
|
|
--disallow-incomplete-defs,
|
|
--ignore-missing-imports,
|
|
--disable-error-code=var-annotated,
|
|
--disable-error-code=union-attr,
|
|
--disable-error-code=assignment,
|
|
--disable-error-code=attr-defined,
|
|
--disable-error-code=import-untyped,
|
|
--disable-error-code=truthy-function,
|
|
--follow-imports=skip,
|
|
--explicit-package-bases,
|
|
]
|
|
- repo: https://github.com/PyCQA/flake8
|
|
rev: 6.1.0
|
|
hooks:
|
|
- id: flake8
|
|
args: [ "--extend-ignore=E203" ]
|
|
- repo: https://github.com/pylint-dev/pylint
|
|
rev: v3.0.2
|
|
hooks:
|
|
- id: pylint
|
|
exclude:
|
|
(?x)(
|
|
^docs
|
|
| pb2\.py$
|
|
| grpc\.py$
|
|
| \.demo$
|
|
| \.md$
|
|
| \.html$
|
|
)
|
|
args: [
|
|
--disable=W0511,
|
|
--disable=W0718,
|
|
--disable=W0122,
|
|
--disable=C0103,
|
|
--disable=R0913,
|
|
--disable=E0401,
|
|
--disable=E1101,
|
|
--disable=C0415,
|
|
--disable=W0603,
|
|
--disable=R1705,
|
|
--disable=R0914,
|
|
--disable=E0601,
|
|
--disable=W0602,
|
|
--disable=W0604,
|
|
--disable=R0801,
|
|
--disable=R0902,
|
|
--disable=R0903,
|
|
--disable=C0123,
|
|
--disable=W0231,
|
|
--disable=W1113,
|
|
--disable=W0221,
|
|
--disable=R0401,
|
|
--disable=W0632,
|
|
--disable=W0123,
|
|
--disable=C3001,
|
|
]
|
|
- 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",
|
|
]
|