-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
46 lines (42 loc) · 1.11 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
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/pre-commit/mirrors-mypy
rev: 'v1.2.0' # Use the sha / tag you want to point at
hooks:
- id: mypy