Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions template/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,34 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: debug-statements
- id: check-case-conflict
- id: check-merge-conflict
- id: debug-statements
exclude: ^backend/{{ copier__project_slug }}/utils/debugger.py
- id: detect-aws-credentials
- id: detect-aws-credentials
args: ["--allow-missing-credentials"]
- id: detect-private-key
- id: detect-private-key

- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
- id: black

- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- id: isort
args: ["--profile", "black", "--filter-files"]

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.290'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.8
hooks:
- id: ruff
args: ["--ignore", "E501"]
# Run the linter.
- id: ruff-check
args: ["--ignore", "E501", "--extend-select", "E,W"]

- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
hooks:
- id: bandit
- id: bandit
args: ["-ll"]
Loading