-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
149 lines (138 loc) · 3.66 KB
/
.pre-commit-config.yaml
File metadata and controls
149 lines (138 loc) · 3.66 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
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-executables-have-shebangs
priority: 0
- id: check-merge-conflict
priority: 0
- id: check-toml
priority: 0
- id: check-vcs-permalinks
priority: 0
- id: name-tests-test
files: ^tests/(tests_integration|tests_unit)/.*\.py$
args: [--django]
priority: 0
- id: end-of-file-fixer
exclude: ^(.*/VERSION|tests/resources/.*/.*)$
priority: 1
- id: fix-byte-order-marker
priority: 2
- id: trailing-whitespace
priority: 3
- repo: https://github.com/IamTheFij/docker-pre-commit
rev: v3.0.1
hooks:
- id: docker-compose-check
priority: 0
- 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: chmod
args: ['644']
exclude_types: [shell]
exclude: ^(tests/resources/file_df_connection/generate_files\.py)$
priority: 5
- id: chmod
args: ['755']
types: [shell]
priority: 5
- id: chmod
args: ['755']
files: ^(tests/resources/file_df_connection/generate_files\.py)$
priority: 5
- id: insert-license
files: .*\.py$
exclude: ^(setup\.py|conftest\.py|docs/.*\.py|tests/.*\.py)$
args:
- --license-filepath
- .spdx-license-header.txt
- --allow-past-years
- --no-extra-eol
priority: 6
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
args: [-w]
priority: 7
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.16.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2', --offset, '2']
priority: 8
- repo: https://github.com/lovesegfault/beautysh
rev: v6.4.2
hooks:
- id: beautysh
additional_dependencies: [setuptools]
priority: 8
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.10.7
hooks:
- id: uv-lock
priority: 8
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.4
hooks:
- id: ruff-format
priority: 8
- id: ruff
args: [--fix]
priority: 9
- repo: local
hooks:
- id: mypy
name: mypy
entry: python3 -m mypy onetl
language: system
types: [python]
pass_filenames: false
priority: 10
- id: towncrier
name: towncrier
entry: towncrier build --draft
language: system
types: [rst]
pass_filenames: false
priority: 8
- repo: meta
hooks:
- id: check-hooks-apply
priority: 0
- id: check-useless-excludes
priority: 0
ci:
skip:
- chmod # failing in pre-commit.ci
- docker-compose-check # cannot run on pre-commit.ci
- mypy # checked with Github Actions
- towncrier # checked with Github Actions