-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
50 lines (50 loc) · 1.48 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
repos:
- repo: https://github.com/timothycrosley/isort
rev: 5.10.1
hooks:
- id: isort
language_version: python3.9
args: [--line-length=127]
- repo: https://github.com/python/black
rev: 22.6.0
hooks:
- id: black
language_version: python3.9
args: [--line-length=127]
# We can safely ignore flake8 warnings that pylint catches.
- repo: https://gitlab.com/pycqa/flake8
rev: 4.0.1
hooks:
- id: flake8
additional_dependencies: [
flake8-docstrings,
flake8-builtins,
flake8-comprehensions,
flake8-print,
flake8-eradicate,
]
language_version: python3.9
args: [
--max-line-length=127,
'--ignore=D200,D107,D101,D102,D103,D105,F811,F401'
]
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args: [
--max-line-length=127,
'--disable=fixme,logging-fstring-interpolation,logging-not-lazy,missing-function-docstring,missing-class-docstring,invalid-name,attribute-defined-outside-init',
'--good-names=_,rc,ti,ip,l3',
'--load-plugins=pylint_pytest'
]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.971
hooks:
- id: mypy
verbose: true
entry: bash -c 'mypy "$@" || true' --
additional_dependencies: [types-PyYAML, types-requests, types-setuptools]