.pre-commit-config.yaml (1433B)
1 repos: 2 - repo: https://github.com/astral-sh/ruff-pre-commit 3 rev: "v0.3.5" 4 hooks: 5 - id: ruff 6 args: ["--fix"] 7 - id: ruff-format 8 - repo: https://github.com/PyCQA/autoflake 9 rev: v2.3.1 10 hooks: 11 - id: autoflake 12 name: autoflake 13 args: ["--in-place", "--remove-unused-variables", "--remove-all-unused-imports"] 14 language: python 15 files: \.py$ 16 - repo: https://github.com/pre-commit/pre-commit-hooks 17 rev: v2.1.0 18 hooks: 19 - id: trailing-whitespace 20 - id: end-of-file-fixer 21 - id: flake8 22 additional_dependencies: [flake8-typing-imports] 23 - repo: https://github.com/pre-commit/pygrep-hooks 24 rev: v1.10.0 25 hooks: 26 - id: rst-backticks 27 - repo: https://github.com/asottile/pyupgrade 28 rev: v3.15.2 29 hooks: 30 - id: pyupgrade 31 args: [--py38-plus] 32 - repo: https://github.com/asottile/blacken-docs 33 rev: 1.16.0 34 hooks: 35 - id: blacken-docs 36 additional_dependencies: [black==24.2.0] 37 - repo: local 38 hooks: 39 - id: rst 40 name: rst 41 entry: rst-lint --encoding utf-8 42 files: ^(HOWTORELEASE.rst|README.rst)$ 43 language: python 44 additional_dependencies: [pygments, restructuredtext_lint] 45 - repo: https://github.com/pre-commit/mirrors-mypy 46 rev: v1.9.0 47 hooks: 48 - id: mypy 49 files: ^(src/|testing/) 50 args: [] 51 additional_dependencies: [pytest]