代码拉取完成,页面将自动刷新
default_language_version:
python: python3.11
repos:
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args:
- -sn
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: check-vcs-permalinks
- id: check-yaml
- id: debug-statements
exclude: ^todd/utils/patches\.py$
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
exclude: ^tests/test_utils/configs/diff\.html$
- id: fix-encoding-pragma
args:
- --remove
- id: forbid-submodules
- id: mixed-line-ending
args:
- --fix=lf
exclude: \.bat$
- id: mixed-line-ending
args:
- --fix=crlf
files: \.bat$
- id: name-tests-test
args:
- --pytest-test-first
exclude: ^tests/(helpers|test_utils/configs/.*\.py$|test_distillers/fgd/fgd.py$|test_losses/ckd/ckd.py$)
- id: pretty-format-json
args:
- --autofix
exclude: \.ipynb$
- id: trailing-whitespace
exclude: ^tests/test_utils/configs/diff\.html$
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
exclude: docs
additional_dependencies:
- numpy
- pandas-stubs
- types-Pillow
- types-toml
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
exclude_types:
- jupyter
args:
- tests
- todd
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.14.1
hooks:
- id: commitizen
- repo: https://github.com/google/yapf
rev: v0.40.2
hooks:
- id: yapf
require_serial: true
- repo: https://github.com/pycqa/autoflake
rev: v2.2.1
hooks:
- id: autoflake
- repo: https://github.com/pycqa/bandit
rev: 1.7.7
hooks:
- id: bandit
args:
- -c
- pyproject.toml
additional_dependencies:
- bandit[toml]
- repo: https://github.com/pycqa/doc8
rev: v1.1.1
hooks:
- id: doc8
- repo: https://github.com/pycqa/docformatter
rev: v1.7.5
hooks:
- id: docformatter
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-docstrings
- mccabe
- pep8-naming
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/pycqa/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
additional_dependencies:
- pydocstyle[toml]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。