-
Notifications
You must be signed in to change notification settings - Fork 10
/
.pre-commit-config.yaml
43 lines (43 loc) · 1.03 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
default_language_version:
python: python3.9
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.18.0
hooks:
- id: pyupgrade
- repo: https://github.com/ambv/black
rev: 22.6.0
hooks:
- id: black
- repo: https://github.com/humitos/mirrors-autoflake
rev: v1.1
hooks:
- id: autoflake
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
additional_dependencies:
- toml
exclude: "example/"
- repo: local
hooks:
- id: pylint
name: pylint
entry: python3 -m pylint
language: system
types: [python]
exclude: "example/"
- id: mypy
name: mypy
entry: python3 -m mypy
args: ["--junit-xml", "test-reports/mypy-junit.xml"]
language: system
types: [python]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: debug-statements
- id: flake8