-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
125 lines (116 loc) · 2.94 KB
/
.pre-commit-config.yaml
File metadata and controls
125 lines (116 loc) · 2.94 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-ast
priority: 0
- id: check-case-conflict
priority: 0
- id: check-docstring-first
priority: 0
- id: check-merge-conflict
priority: 0
- id: check-toml
priority: 0
- id: check-vcs-permalinks
priority: 0
- id: detect-private-key
priority: 0
- id: check-yaml
args: [--unsafe]
priority: 0
- id: name-tests-test
args: [--django]
files: ^tests/.*\.py$
exclude: ^tests/libs/.*\.py$
priority: 0
- id: end-of-file-fixer
exclude: ^.*/VERSION$
priority: 1
- id: fix-byte-order-marker
priority: 2
- id: trailing-whitespace
priority: 3
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-no-log-warn
priority: 0
- id: python-no-eval
priority: 0
- id: rst-backticks
priority: 0
- id: rst-directive-colons
priority: 0
- id: rst-inline-touching-normal
priority: 0
- id: text-unicode-replacement-char
priority: 0
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.6
hooks:
- id: forbid-tabs
priority: 0
- id: remove-tabs
args: [--whitespaces-count, '2']
priority: 4
- id: insert-license
files: .*\.py$
exclude: ^(docs/.*\.py|tests/.*\.py)$
args:
- --license-filepath
- .spdx-license-header.txt
- --allow-past-years
- --no-extra-eol
priority: 5
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
args: [-w]
priority: 6
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.16.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2', --preserve-quotes, --offset, '2']
priority: 7
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.11.6
hooks:
- id: uv-lock
priority: 7
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.10
hooks:
- id: ruff-format
priority: 7
- id: ruff-check
args: [--fix]
priority: 8
- repo: local
hooks:
- id: mypy
name: mypy
entry: python3 -m mypy etl_entities
language: system
types: [python]
pass_filenames: false
priority: 9
- id: towncrier
name: towncrier
entry: towncrier build --draft
language: system
types: [rst]
pass_filenames: false
priority: 5
- repo: meta
hooks:
- id: check-hooks-apply
priority: 0
- id: check-useless-excludes
priority: 0
ci:
skip:
- mypy # checked with Github Actions
- towncrier # checked with Github Actions