|
| 1 | +[[repos]] |
| 2 | +repo = "https://github.com/pre-commit/pre-commit-hooks" |
| 3 | +rev = "v4.6.0" |
| 4 | +hooks = [ |
| 5 | + { id = "check-added-large-files" }, |
| 6 | +] |
| 7 | + |
| 8 | +[[repos]] |
| 9 | +repo = "local" |
| 10 | +hooks = [ |
| 11 | + { id = "lint-links", name = "Lint markdown links", entry = "make lint_links", language = "system", pass_filenames = false, always_run = true }, |
| 12 | + { id = "make-fmt", name = "Run formatter (make fmt)", entry = "make fmt", language = "system", pass_filenames = false, always_run = true }, |
| 13 | + { id = "ruff-check", name = "Run ruff linter", entry = "uv run ruff check", language = "system", pass_filenames = false, always_run = true }, |
| 14 | + { id = "ruff-complexity", name = "Check cyclomatic complexity", entry = "uv run ruff check --select C901", language = "system", pass_filenames = false, always_run = true }, |
| 15 | + { id = "ruff-tech-debt", name = "Check TODO/FIXME markers", entry = "uv run ruff check --select FIX", language = "system", pass_filenames = false, always_run = true }, |
| 16 | + { id = "pylint-duplicate-code", name = "Detect duplicate code", entry = "uv run pylint --disable=all --enable=R0801 src common utils", language = "system", pass_filenames = false, always_run = true }, |
| 17 | + { id = "ai-writing-check", name = "AI writing check", entry = "uv run python scripts/check_ai_writing.py", language = "system", pass_filenames = false, always_run = true }, |
| 18 | +] |
0 commit comments