default_language_version: python: python3.7 repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: "v2.4.0" hooks: # General file-formatting - id: trailing-whitespace args: [--markdown-linebreak-ext=md] - id: end-of-file-fixer - id: check-json - id: check-toml # Python-related - id: debug-statements - id: name-tests-test args: ["--django"] # Required to match on test*.py # Git-related - id: check-merge-conflict - repo: https://gitlab.com/pycqa/flake8 rev: "3.7.9" hooks: - id: flake8 additional_dependencies: - flake8-bugbear # Finds common application design anti-patterns - repo: https://github.com/pre-commit/pygrep-hooks rev: "v1.4.2" hooks: - id: python-check-blanket-noqa - repo: https://github.com/pre-commit/mirrors-isort rev: "v4.3.21" hooks: - id: isort additional_dependencies: - toml # Required for loading config from pyproject.toml - repo: https://github.com/ambv/black rev: "19.10b0" hooks: - id: black