Skip to content

Commit 43df385

Browse files
committed
Switch pre-commit hooks to local system hooks with explicit .venv/bin paths
- Replace remote ruff-pre-commit repo with local system hooks using .venv/bin/ruff format and ruff check --fix --exit-non-zero-on-fix - Switch mypy from python3 -m to .venv/bin/mypy for consistency - Add pytest hook running via .venv/bin/pytest -q - Set pass_filenames: false on all hooks so checks run project-wide
1 parent 0115577 commit 43df385

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

.pre-commit-config.yaml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
11
repos:
2-
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.15.12
2+
- repo: local
43
hooks:
54
- id: ruff-format
5+
name: ruff-format
6+
entry: .venv/bin/ruff format
7+
language: system
8+
pass_filenames: false
69
- id: ruff
7-
args: [--fix, --exit-non-zero-on-fix]
8-
- repo: local
9-
hooks:
10+
name: ruff
11+
entry: .venv/bin/ruff check --fix --exit-non-zero-on-fix .
12+
language: system
13+
pass_filenames: false
1014
- id: mypy
1115
name: mypy
12-
entry: python3 -m mypy teaagent/
16+
entry: .venv/bin/mypy teaagent/
17+
language: system
18+
pass_filenames: false
19+
- id: pytest
20+
name: pytest
21+
entry: .venv/bin/pytest -q
1322
language: system
1423
pass_filenames: false

0 commit comments

Comments
 (0)