-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
.pre-commit-config.yaml
94 lines (94 loc) · 2.44 KB
/
.pre-commit-config.yaml
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
default_stages: [pre-commit]
repos:
- repo: https://github.com/rcmdnk/pyproject-pre-commit
rev: v0.3.6
hooks:
- id: ruff-lint-diff
stages: [pre-commit]
- id: ruff-lint
stages: [pre-commit]
- id: ruff-format-diff
stages: [pre-commit]
- id: ruff-format
stages: [pre-commit]
- id: black-diff
stages: [manual]
- id: black
stages: [manual]
- id: blacken-docs
stages: [manual]
- id: autoflake-diff
stages: [manual]
- id: autoflake
stages: [manual]
- id: autopep8-diff
stages: [manual]
- id: autopep8
stages: [manual]
- id: isort-diff
stages: [manual]
- id: isort
stages: [manual]
- id: flake8
stages: [manual]
- id: bandit
stages: [manual]
- id: mypy
stages: [pre-commit]
- id: numpydoc-validation
stages: [pre-commit]
- id: shellcheck
stages: [pre-commit]
- id: mdformat-check
stages: [pre-commit]
- id: mdformat
stages: [pre-commit]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-byte-order-marker
stages: [pre-commit]
- id: check-yaml
stages: [pre-commit]
- id: check-json
stages: [pre-commit]
- id: check-toml
stages: [pre-commit]
- id: check-case-conflict
stages: [pre-commit]
- id: check-merge-conflict
args:
- "--assume-in-merge"
stages: [pre-commit]
- id: end-of-file-fixer
stages: [pre-commit]
- id: fix-byte-order-marker
stages: [pre-commit]
- id: mixed-line-ending
stages: [pre-commit]
- id: trailing-whitespace
stages: [pre-commit]
- id: debug-statements
stages: [pre-commit]
- id: detect-private-key
stages: [pre-commit]
- id: detect-aws-credentials
args:
- "--allow-missing-credentials"
stages: [pre-commit]
- repo: local
hooks:
- id: combine
name: combine
language: system
entry: uv run ./combine.sh
pass_filenames: false
always_run: true
stages: [pre-push]
- id: pytest-version
name: pytest-version
language: system
entry: uv run pytest ./tests/test_version.py
pass_filenames: false
always_run: true
stages: [pre-push]