forked from aeye-lab/pymovements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
151 lines (149 loc) · 3.87 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
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
150
151
exclude: |
(?x)^(
src/pymovements/_version.py
)$
ci:
autoupdate_commit_msg: 'ci: pre-commit autoupdate'
skip: [pylint]
repos:
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
rev: v3.18.0
hooks:
- id: pyupgrade
args: [--py39-plus]
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.14.0
hooks:
- id: reorder-python-imports
args: [--application-directories=src, --py39-plus]
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.14.0
hooks:
- id: reorder-python-imports
files: ^src/
exclude: __init__.py
args: [--application-directories=src, --add-import, 'from __future__ import annotations']
- repo: https://github.com/datarootsio/databooks
rev: 1.3.10
hooks:
- id: databooks-meta
args: [--cell-fields-keep=id]
- repo: https://github.com/pappasam/toml-sort
rev: v0.23.1
hooks:
- id: toml-sort-fix
- repo: https://github.com/dannysepler/rm_unneeded_f_str
rev: v0.2.0
hooks:
- id: rm-unneeded-f-str
- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
hooks:
- id: nbstripout
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: insert-license
args: [--use-current-year]
types: [python]
- repo: https://github.com/jsh9/pydoclint
rev: 0.5.9
hooks:
- id: pydoclint
args: ["--config=pyproject.toml"]
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.8.7
hooks:
- id: nbqa-autopep8
- id: nbqa-flake8
args: ['--builtins=display']
- id: nbqa-isort
args: ["--float-to-top"]
- id: nbqa-pyupgrade
args: ["--py39-plus"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.12.1
hooks:
- id: mypy
additional_dependencies: [pandas-stubs, types-tqdm]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: check-toml
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: double-quote-string-fixer
- id: end-of-file-fixer
- id: name-tests-test
- id: no-commit-to-branch
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/hhatto/autopep8
rev: v2.3.1
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
- repo: https://github.com/PyCQA/doc8
rev: v1.1.2
hooks:
- id: doc8
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
- repo: https://github.com/pycqa/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
files: ^src/
args:
[
'--ignore=D107,D203,D213,D413',
]
- id: pydocstyle
files: ^tests/
args:
[
'--ignore=D103,D107,D213',
]
- repo: https://github.com/PyCQA/pylint
rev: v3.3.1
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
files: ^src/
args:
[
'--output-format=parseable',
'--rcfile=pylintrc',
]
- id: pylint
name: pylint-tests-directory
entry: pylint
language: system
types: [python]
files: ^tests/
args:
[
'--output-format=parseable',
'--disable=duplicate-code',
'--disable=missing-class-docstring',
'--disable=missing-function-docstring',
'--disable=protected-access',
'--rcfile=pylintrc',
]