You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.8 KiB
73 lines
1.8 KiB
# Ultralytics YOLO 🚀, AGPL-3.0 license |
|
# Pre-commit hooks. For more information see https://github.com/pre-commit/pre-commit-hooks/blob/main/README.md |
|
|
|
exclude: 'docs/' |
|
# Define bot property if installed via https://github.com/marketplace/pre-commit-ci |
|
ci: |
|
autofix_prs: true |
|
autoupdate_commit_msg: '[pre-commit.ci] pre-commit suggestions' |
|
autoupdate_schedule: monthly |
|
# submodules: true |
|
|
|
repos: |
|
- repo: https://github.com/pre-commit/pre-commit-hooks |
|
rev: v4.4.0 |
|
hooks: |
|
- id: end-of-file-fixer |
|
- id: trailing-whitespace |
|
- id: check-case-conflict |
|
# - id: check-yaml |
|
- id: check-docstring-first |
|
- id: double-quote-string-fixer |
|
- id: detect-private-key |
|
|
|
- repo: https://github.com/asottile/pyupgrade |
|
rev: v3.8.0 |
|
hooks: |
|
- id: pyupgrade |
|
name: Upgrade code |
|
|
|
- repo: https://github.com/PyCQA/isort |
|
rev: 5.12.0 |
|
hooks: |
|
- id: isort |
|
name: Sort imports |
|
|
|
- repo: https://github.com/google/yapf |
|
rev: v0.40.0 |
|
hooks: |
|
- id: yapf |
|
name: YAPF formatting |
|
|
|
- repo: https://github.com/executablebooks/mdformat |
|
rev: 0.7.16 |
|
hooks: |
|
- id: mdformat |
|
name: MD formatting |
|
additional_dependencies: |
|
- mdformat-gfm |
|
- mdformat-black |
|
# exclude: "README.md|README.zh-CN.md|CONTRIBUTING.md" |
|
|
|
- repo: https://github.com/PyCQA/flake8 |
|
rev: 6.0.0 |
|
hooks: |
|
- id: flake8 |
|
name: PEP8 |
|
|
|
- repo: https://github.com/codespell-project/codespell |
|
rev: v2.2.5 |
|
hooks: |
|
- id: codespell |
|
args: |
|
- --ignore-words-list=crate,nd,strack,dota |
|
|
|
# - repo: https://github.com/asottile/yesqa |
|
# rev: v1.4.0 |
|
# hooks: |
|
# - id: yesqa |
|
|
|
# - repo: https://github.com/asottile/dead |
|
# rev: v1.5.0 |
|
# hooks: |
|
# - id: dead
|
|
|