-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
55 lines (51 loc) · 1.38 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
ci:
autoupdate_schedule: monthly
autofix_prs: true
skip: [pylint,mypy]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: fix-encoding-pragma
- id: mixed-line-ending
types: [python]
- id: flake8
args: ["--max-line-length=120"]
- repo: https://github.com/psf/black
rev: 23.3.0 # Replace by any tag/version: https://github.com/psf/black/tags
hooks:
- id: black
language_version: python3 # Should be a command that runs python3.6+
- repo: https://github.com/ikamensh/flynt/
rev: '0.78'
hooks:
- id: flynt
args: [
'--line-length=120',
'--fail-on-change',
]
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
verbose: true
types: [python]
language: system
exclude: '^(docs/)|(examples/)'
- repo: https://github.com/pycqa/pydocstyle
rev: 6.3.0 # pick a git hash / tag to point to
hooks:
- id: pydocstyle
additional_dependencies: ['tomli']
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.2.0' # Use the sha / tag you want to point at
hooks:
- id: mypy
args: [
'--namespace-packages',
'--explicit-package-bases'
]