forked from ChelseaKR/cairn
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
28 lines (28 loc) · 963 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
28 lines (28 loc) · 963 Bytes
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
# A fast pre-flight, not the gate. `make verify` is the local gate and
# ./plumbline-gate.sh is the merge gate; nothing here is a substitute for
# either, and a hook that passed says only that the cheap checks passed.
#
# Local hooks run through `uv run --locked`, so the tool versions come from
# uv.lock and match `make lint` and `make typecheck` exactly. A separately
# pinned mirror would be a second set of versions to keep in step with the
# lockfile, and it would drift.
#
# Install with: uvx pre-commit install
repos:
- repo: local
hooks:
- id: ruff
name: ruff check
entry: uv run --locked --extra dev ruff check --fix
language: system
types: [python]
- id: mypy
name: mypy
entry: uv run --locked --extra dev mypy
language: system
types: [python]
pass_filenames: false
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.1
hooks:
- id: gitleaks