forked from afx-team/hebb-mind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
34 lines (31 loc) · 847 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
34 lines (31 loc) · 847 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
31
32
33
34
repos:
- repo: local
hooks:
# ---- pre-commit (fast, auto-fix) ----
- id: ruff-check
name: ruff check (auto-fix)
entry: ruff check --fix src/
language: system
pass_filenames: false
types: [python]
- id: ruff-format
name: ruff format
entry: ruff format src/
language: system
pass_filenames: false
types: [python]
# ---- pre-push (slow, verify; mirrors CI) ----
- id: mypy
name: mypy (type check)
entry: mypy src/hebb/
language: system
pass_filenames: false
types: [python]
stages: [pre-push]
- id: pytest
name: pytest
entry: pytest tests/ -q --tb=short
language: system
pass_filenames: false
types: [python]
stages: [pre-push]