-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
59 lines (59 loc) · 1.47 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
56
57
58
59
exclude: "^.venv/.*|.html"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.0.1"
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: pretty-format-json
args: ["--autofix"]
- id: check-merge-conflict
- repo: local
hooks:
- id: isort-source
name: isort-source
language: system
entry: poetry run isort ./xpresso
types: [python]
pass_filenames: false
- id: isort-tests
name: isort-tests
language: system
entry: poetry run isort ./tests
types: [python]
pass_filenames: false
- id: isort-docs
name: isort-docs
language: system
entry: poetry run isort -l 70 ./docs_src
types: [python]
pass_filenames: false
- id: blacken-source
name: blacken-source
language: system
entry: poetry run black ./xpresso
types: [python]
pass_filenames: false
- id: blacken-tests
name: blacken-tests
language: system
entry: poetry run black ./tests
types: [python]
pass_filenames: false
- id: blacken-docs
name: blacken-docs
language: system
entry: poetry run black -l 70 ./docs_src
types: [python]
pass_filenames: false
- id: flake8
name: flake8
language: system
entry: poetry run flake8
types: [python]
- id: mypy
name: mypy
language: system
entry: poetry run mypy
types: [python]
pass_filenames: false