repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: - id: check-ast - id: check-builtin-literals - id: check-case-conflict - id: check-docstring-first - id: check-merge-conflict - id: check-toml - id: check-yaml - id: detect-private-key - id: end-of-file-fixer - id: mixed-line-ending args: - --fix=lf - id: no-commit-to-branch always_run: false exclude: .pre-commit-config.yaml - id: requirements-txt-fixer - id: trailing-whitespace - repo: https://github.com/pycqa/isort rev: 5.12.0 hooks: - id: isort args: [--profile, black, --line-length=79] - repo: https://github.com/psf/black rev: 23.7.0 hooks: - id: black language_version: python3.11 args: [--line-length=79] - repo: https://github.com/PyCQA/flake8 rev: 6.0.0 hooks: - id: flake8 exclude: (migrations/) - repo: https://github.com/pre-commit/mirrors-mypy rev: v1.7.0 hooks: - id: mypy name: "check type hints" args: [--ignore-missing-imports,--disallow-untyped-defs] exclude: (v1/||admin/)