diff --git a/template/.pre-commit-config.yaml b/template/.pre-commit-config.yaml index c1879a0..314c101 100644 --- a/template/.pre-commit-config.yaml +++ b/template/.pre-commit-config.yaml @@ -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"]