|
|
|
|
|
|
|
|
|
|
|
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.5.0 |
|
hooks: |
|
- id: end-of-file-fixer |
|
- id: trailing-whitespace |
|
- id: check-case-conflict |
|
|
|
- id: check-docstring-first |
|
- id: detect-private-key |
|
|
|
- repo: https://github.com/asottile/pyupgrade |
|
rev: v3.15.0 |
|
hooks: |
|
- id: pyupgrade |
|
name: Upgrade code |
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit |
|
rev: v0.1.11 |
|
hooks: |
|
- id: ruff |
|
args: [--fix] |
|
|
|
- repo: https://github.com/executablebooks/mdformat |
|
rev: 0.7.17 |
|
hooks: |
|
- id: mdformat |
|
name: MD formatting |
|
additional_dependencies: |
|
- mdformat-gfm |
|
- mdformat-frontmatter |
|
- mdformat-mkdocs |
|
args: |
|
- --wrap=no |
|
- --number |
|
exclude: 'docs/.*\.md' |
|
|
|
|
|
- repo: https://github.com/codespell-project/codespell |
|
rev: v2.2.6 |
|
hooks: |
|
- id: codespell |
|
exclude: "docs/de|docs/fr|docs/pt|docs/es|docs/mkdocs_de.yml" |
|
args: |
|
- --ignore-words-list=crate,nd,ned,strack,dota,ane,segway,fo,gool,winn,commend,bloc,nam,afterall |
|
|
|
- repo: https://github.com/hadialqattan/pycln |
|
rev: v2.4.0 |
|
hooks: |
|
- id: pycln |
|
args: [--all] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|