-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
137 lines (126 loc) · 3.41 KB
/
.pre-commit-config.yaml
File metadata and controls
137 lines (126 loc) · 3.41 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
default_language_version:
python: python3.12
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
priority: 0
- id: check-ast
priority: 0
- id: check-merge-conflict
priority: 0
- id: debug-statements
priority: 0
- id: detect-private-key
priority: 0
- id: end-of-file-fixer
types: [python]
priority: 1
- id: fix-byte-order-marker
priority: 2
- id: mixed-line-ending
args: [--fix=lf]
types: [python]
priority: 3
- id: trailing-whitespace
priority: 4
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
priority: 0
- id: python-check-mock-methods
priority: 0
- id: python-no-eval
priority: 0
- id: python-no-log-warn
priority: 0
- id: python-use-type-annotations
priority: 0
- id: text-unicode-replacement-char
priority: 0
- repo: https://github.com/IamTheFij/docker-pre-commit
rev: v3.0.1
hooks:
- id: docker-compose-check
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: 5
- id: chmod
args: ['644']
exclude_types: [shell]
exclude: ^(.*__main__\.py|syncmaster/server/scripts/.*\.py|docker/.*\.py|tests/resources/file_df_connection/generate.*.py)$
priority: 6
- id: chmod
args: ['755']
types: [shell]
priority: 6
- id: chmod
args: ['755']
files: ^(.*__main__\.py|syncmaster/server/scripts/.*\.py|docker/.*\.py|tests/resources/file_df_connection/generate.*.py)$
priority: 6
- id: insert-license
types: [python]
exclude: ^(syncmaster/server/dependencies/stub.py|docs/.*\.py|tests/.*\.py)$
args:
- --license-filepath
- .spdx-license-header.txt
- --allow-past-years
- --no-extra-eol
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: 7
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
args: [-w]
additional_dependencies:
- tomli
exclude: .*\.svg
priority: 8
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.10.9
hooks:
- id: uv-lock
priority: 9
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.5
hooks:
- id: ruff-format
priority: 9
- id: ruff-check
args: [--fix]
priority: 10
- repo: local
hooks:
- id: mypy
name: mypy
entry: mypy syncmaster
language: python
types: [python]
require_serial: true
pass_filenames: false
priority: 10
- repo: meta
hooks:
- id: check-hooks-apply
priority: 0
- id: check-useless-excludes
priority: 0
ci:
skip:
- mypy # checked with Github Actions
- chmod # failing in pre-commit.ci
- docker-compose-check # cannot run on pre-commit.ci