kanban-app/.pre-commit-config.yaml

65 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2026-02-24 14:36:31 +00:00
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
exclude: ^.+\.md$
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
args: ['--maxkb=1000']
- id: check-json
- id: check-toml
- id: check-merge-conflict
- id: debug-statements
language: python
- repo: https://github.com/psf/black
rev: 23.12.1
hooks:
- id: black
language_version: python3.11
args: ['--line-length=100']
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: ['--profile=black', '--line-length=100']
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
args: ['--max-line-length=100', '--extend-ignore=E203,W503']
additional_dependencies: [
flake8-docstrings,
flake8-bugbear,
flake8-comprehensions,
]
- repo: local
hooks:
- id: pytest
name: pytest
entry: pytest
language: system
pass_filenames: false
args: ['backend/', '-v', '--tb=short']
always_run: true
- id: type-check
name: mypy type check
entry: mypy
language: system
pass_filenames: false
args: ['backend/app/']
always_run: false
- id: security-check
name: bandit security check
entry: bandit
language: system
pass_filenames: false
args: ['-r', 'backend/app/', '-ll']
always_run: false