Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
75 lines (75 loc) · 2.18 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
75 lines (75 loc) · 2.18 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
repos:
- repo: local
hooks:
- id: ruff-check
name: Ruff Linter
language: system
types: [python]
entry: uv run ruff check --fix
require_serial: true
stages: [pre-commit, pre-push, manual]
- id: ruff-format
name: Ruff Formatter
language: system
types: [python]
entry: uv run ruff format
require_serial: true
stages: [pre-commit, pre-push, manual]
- id: codespell
name: Check code for common misspellings
language: system
types: [text]
# Fixtures are captured from the real iTM, in Dutch.
exclude: ^(uv\.lock|tests/fixtures/.*)$
entry: uv run codespell
- id: mypy
name: Static type checking using mypy
language: system
types: [python]
entry: uv run mypy
require_serial: true
- id: pylint
name: Starring code with pylint
language: system
types: [python]
entry: uv run pylint
- id: pytest
name: Running tests and test coverage with pytest
language: system
types: [python]
entry: uv run pytest
pass_filenames: false
- id: uv-lock
name: Check uv.lock is up to date
language: system
entry: uv lock --check
pass_filenames: false
always_run: true
- id: yamllint
name: Check YAML files with yamllint
language: system
types: [yaml]
entry: uv run yamllint
- repo: builtin
hooks:
- id: check-case-conflict
- id: check-executables-have-shebangs
stages: [pre-commit, pre-push, manual]
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
stages: [pre-commit, pre-push, manual]
# Captured replies must stay byte for byte as the iTM sent them.
exclude: ^tests/fixtures/
- id: no-commit-to-branch
args:
- --branch=main
- id: trailing-whitespace
stages: [pre-commit, pre-push, manual]
exclude: ^tests/fixtures/