2 Star 0 Fork 1

王渌汀/todd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.pre-commit-config.yaml 3.14 KB
一键复制 编辑 原始数据 按行查看 历史
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]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/LutingWang/todd.git
git@gitee.com:LutingWang/todd.git
LutingWang
todd
todd
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385