-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
50 lines (45 loc) · 1.32 KB
/
.pre-commit-config.yaml
File metadata and controls
50 lines (45 loc) · 1.32 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
43
44
45
46
47
48
49
50
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-toml
- id: check-added-large-files
- repo: local
hooks:
- id: isort
name: isort
entry: uv run isort .
language: system
types: [python]
pass_filenames: false
- id: ruff-check
name: ruff check
entry: uv run ruff check --fix --unsafe-fixes .
language: system
types: [python]
pass_filenames: false
- id: ruff-format
name: ruff format
entry: uv run ruff format .
language: system
types: [python]
pass_filenames: false
- id: mypy
name: mypy
entry: uv run mypy .
language: system
types: [python]
pass_filenames: false
- id: tox-parallel
name: tox parallel tests
# Note: Using sequential mode instead of run-parallel to avoid
# timing flakes from resource contention. The test suite has
# strict 1-second limits for SMALL tests which are sensitive
# to system load.
entry: uv run tox -e py311-fast,py312-fast,py313-fast,py314-fast
language: system
types: [python]
pass_filenames: false
always_run: true