template-backend/.pre-commit-config.yaml
2024-08-13 13:45:55 +04:00

32 lines
779 B
YAML

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-merge-conflict
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
args:
- "--in-place"
- "--remove-duplicate-keys"
- "--remove-unused-variables"
- "--remove-all-unused-imports"
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/ambv/black
rev: 24.4.2
hooks:
- id: black
args:
- "--line-length=119"
- repo: https://github.com/PyCQA/flake8
rev: 7.1.0
hooks:
- id: flake8
default_language_version:
python: python3.12