-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
62 lines (62 loc) · 1.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
repos:
# 🐍 Some out-of-the-box hooks.
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
args:
[
--maxkb=1000,
]
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
args: [--allow-multiple-documents]
- id: end-of-file-fixer
- id: mixed-line-ending
args:
[
--fix=lf,
]
- id: name-tests-test
args:
[
--pytest-test-first,
]
- id: trailing-whitespace
# 🐍🖤 Formatting python code uncompromisingly.
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
# 🐍🦥 Enforce docstrings in python code.
- repo: https://github.com/econchick/interrogate
rev: 1.7.0
hooks:
- id: interrogate
args:
[
"skfb/",
]
# 🏘 Local hooks.
- repo: local
hooks:
# 🐍❗️ Analyze python code with pylint.
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args:
[
--rcfile=./pyproject.toml,
]
# 🐍🧪 Test custom components.
- id: pytest
name: pytest
entry: pytest
language: system
types: [python]
pass_filenames: false