-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
54 lines (54 loc) · 1.61 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
default_language_version:
python: python3.9.7
repos:
- repo: https://github.com/psf/black
rev: 22.6.0
hooks:
- id: black
exclude: venv
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.8.2
hooks:
- id: reorder-python-imports
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-docstring-first
- id: check-json
- id: check-yaml
- id: check-ast
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args:
[
"-rn", # Only display messages
"-sn", # Don't display the score
"--rcfile=.pylintrc", # Link to your config file
"--load-plugins=pylint.extensions.docparams", # Load an extension
"--disable=C",
"--disable=C0415",
"--disable=W",
"--disable=R0903",
"--disable=E1101",
"--msg-template={path}||{msg_id}||{symbol}||{category}||{line}||{column}||{msg}",
]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.971
hooks:
- id: mypy
additional_dependencies: [pydantic>=1.9.1]
args:
[
"--config-file=pyproject.toml",
"--warn-unused-configs",
# See why: https://mypy.readthedocs.io/en/stable/installed_packages.html#using-installed-packages-with-mypy-pep-561
"--python-executable=.venv/bin/python3",
]