-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
30 lines (30 loc) · 875 Bytes
/
.pre-commit-config.yaml
File metadata and controls
30 lines (30 loc) · 875 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
29
30
repos:
- repo: local
hooks:
- id: pytest
name: Run pytest with coverage
entry: uv run pytest --cov=src --cov-report=term-missing --cov-fail-under=100
language: system
pass_filenames: false
- id: ruff-lint
name: Run ruff linting
entry: uv run ruff check
language: system
types: [python]
- id: ruff-format
name: Run ruff formatting
entry: uv run ruff format
language: system
types: [python]
- id: mypy
name: Run mypy type checking
entry: uv run mypy
language: system
pass_filenames: false
args: ["src", "tests"]
- id: bandit
name: Run bandit security checks
entry: uv run bandit
language: system
pass_filenames: false
args: ["-r", "--skip", "B101", "src", "tests"]