-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
45 lines (41 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
44
45
repos:
- repo: local
hooks:
- id: mypy
name: "[mypy] Type Checker"
language: system
entry: mypy --config-file=pyproject.toml
types: [file, python]
stages: [pre-commit]
- repo: local
hooks:
- id: black
name: "[black] Formatter"
language: system
entry: black --config=pyproject.toml
types: [file, python]
stages: [pre-commit]
- repo: local
hooks:
- id: isort
name: "[isort] Sort imports"
language: system
entry: isort --sp=pyproject.toml
types: [file, python]
stages: [pre-commit]
- repo: local
hooks:
- id: flake8
name: "[flake8] Linter"
language: system
entry: flake8 --toml-config=pyproject.toml
types: [file, python]
stages: [pre-commit]
- repo: local
hooks:
- id: pytest
name: "[pytest] Test"
language: system
entry: pytest -c pyproject.toml
pass_filenames: false
stages: [pre-push]