forked from ChelseaKR/gtfs-scorecard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
42 lines (39 loc) · 1.47 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
42 lines (39 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Local guardrails that mirror the CI merge gate. Install with `uvx pre-commit install`.
# Revisions are pinned to full commit SHAs (tag noted alongside); bump deliberately via a reviewed PR.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # v5.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-yaml
- id: check-added-large-files
args: ["--maxkb=2048"]
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: c59bba8fb259db0fec2bbb77ad8ba51ea7341b56 # v0.15.20
hooks:
- id: ruff
args: ["--fix"]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: d2823d321df3af8f878f7ee3414dc94d037145b9 # v2.1.0
hooks:
- id: mypy
# Mirrors pipeline/pyproject.toml's [dependency-groups] dev + query extra so
# this isolated hook env resolves the same imports `uv run mypy` does in CI.
additional_dependencies:
[
"types-PyYAML",
"types-requests",
"types-jsonschema>=4.26.0.20260518",
"pytest",
"duckdb>=1.0",
]
args: ["--strict", "--config-file=pipeline/pyproject.toml"]
files: ^pipeline/(src|tests)/
- repo: https://github.com/gitleaks/gitleaks
rev: 83d9cd684c87d95d656c1458ef04895a7f1cbd8e # v8.30.1
hooks:
- id: gitleaks