-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
52 lines (52 loc) · 1.39 KB
/
.pre-commit-config.yaml
File metadata and controls
52 lines (52 loc) · 1.39 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
51
52
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-toml
- id: check-yaml
- id: pretty-format-json
args: ["--autofix", "--no-sort-keys"]
- id: name-tests-test
args: ["--pytest-test-first"]
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.5.26
hooks:
- id: uv-lock
- repo: local
hooks:
- id: ruff
name: ruff
entry: ruff check
language: system
types_or: [ python, pyi, jupyter ]
args: [ --fix ]
- id: ruff
name: ruff
entry: ruff format
language: system
types_or: [ python, pyi, jupyter ]
- id: pytest
name: pytest
entry: uv run pytest -vv --cov=src --cov-report term-missing:skip-covered --cov-fail-under=95
language: python
pass_filenames: false
always_run: true
- id: repo-map
name: repo_map
entry: uv run -m repo_mapper
language: system
pass_filenames: false
args:
- --repo-root
- .
- --readme-path
- ./README.md
- --gitignore-path
- ./.gitignore
- --allowed-exts
- py,md,yaml,toml,lock
- --ignore-dirs
- .venv,target,.git,mock_data
# - --ignore-hidden