| files: ^django_recaptcha|scripts|setup.py|manage.py$ | |
| repos: | |
| - repo: https://github.com/pre-commit/pre-commit-hooks | |
| rev: "v4.5.0" | |
| hooks: | |
| - id: check-merge-conflict | |
| - repo: https://github.com/asottile/pyupgrade | |
| rev: "v3.15.0" | |
| hooks: | |
| - id: pyupgrade | |
| args: ["--py38-plus", "--keep-mock"] | |
| - repo: https://github.com/asottile/yesqa | |
| rev: v1.5.0 | |
| hooks: | |
| - id: yesqa | |
| - repo: https://github.com/pycqa/isort | |
| rev: "5.13.2" | |
| hooks: | |
| - id: isort | |
| args: ["--profile", "black"] | |
| - repo: https://github.com/psf/black | |
| rev: "23.12.0" | |
| hooks: | |
| - id: black | |
| language_version: python3 # Should be a command that runs python3.7+ | |
| - repo: https://github.com/pre-commit/pre-commit-hooks | |
| rev: "v4.5.0" | |
| hooks: | |
| - id: end-of-file-fixer | |
| exclude: >- | |
| ^docs/[^/]*\.svg$ | |
| - id: requirements-txt-fixer | |
| - id: trailing-whitespace | |
| types: [python] | |
| - id: check-added-large-files | |
| - id: check-case-conflict | |
| - id: check-executables-have-shebangs | |
| - id: check-json | |
| - id: check-symlinks | |
| - id: check-toml | |
| - id: check-xml | |
| - id: check-yaml | |
| - id: debug-statements | |
| - id: detect-aws-credentials | |
| args: ["--allow-missing-credentials"] | |
| - id: detect-private-key | |
| exclude: ^README.md|(?:tests/)/ | |