repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: debug-statements - id: double-quote-string-fixer - id: name-tests-test - repo: https://github.com/asottile/setup-cfg-fmt rev: v2.7.0 hooks: - id: setup-cfg-fmt - repo: https://github.com/pre-commit/mirrors-isort rev: v5.10.1 hooks: - id: isort language_version: python3.10 args: [ --tc ] - repo: https://github.com/asottile/add-trailing-comma rev: v3.1.0 hooks: - id: add-trailing-comma - repo: https://github.com/asottile/pyupgrade rev: v3.19.1 hooks: - id: pyupgrade args: [--py39-plus] - repo: https://github.com/PyCQA/flake8 rev: 7.1.2 hooks: - id: flake8 entry: pflake8 additional_dependencies: - "pyproject-flake8" - repo: https://github.com/pre-commit/mirrors-mypy rev: v1.15.0 hooks: - id: mypy exclude: ^testing/resources/ - repo: https://github.com/psf/black rev: 25.1.0 hooks: - id: black language_version: python3.12 args: [ --skip-string-normalization ] - repo: https://github.com/myint/docformatter rev: v1.5.0 hooks: - id: docformatter name: docformatter description: 'Formats docstrings to follow PEP 257.' entry: docformatter language: python types: [ python ] - repo: https://github.com/jendrikseipp/vulture rev: 'v2.14' hooks: - id: vulture entry: vulture . --min-confidence 90 --exclude */.venv/*.py,*/tests/*.py