This repository was archived by the owner on Feb 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
83 lines (75 loc) · 1.82 KB
/
.pre-commit-config.yaml
File metadata and controls
83 lines (75 loc) · 1.82 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: check-merge-conflict
- id: end-of-file-fixer
- repo: local
hooks:
- id: poetry-check
name: poetry-check
entry: poetry check
language: system
files: ^pyproject\.toml$
pass_filenames: false
- id: pyupgrade
name: pyupgrade
entry: poetry run pyupgrade
args: [--py36-plus]
language: system
types: [python]
- id: autoflake
name: autoflake
entry: autoflake
args: [
--recursive,
--in-place,
--remove-unused-variables,
--remove-all-unused-imports,
]
language: system
types: [python]
- id: add-trailing-comma
name: add-trailing-comma
entry: add-trailing-comma
args: [--py36-plus]
language: system
types: [python]
- id: isort
name: isort
entry: poetry run isort
language: system
types: [python]
- id: black
name: black
entry: poetry run black .
language: system
types: [python]
- id: flakehell
name: flakehell
entry: poetry run flakehell lint
language: system
types: [python]
- id: mypy
name: mypy
entry: poetry run mypy
args: [
--warn-no-return,
--warn-unreachable,
--strict,
--implicit-optional,
--ignore-missing-imports,
]
language: system
exclude: tests/
types: [python]
- id: pytest
name: pytest
entry: poetry run pytest
language: system
types: [python]
pass_filenames: false