forked from python-poetry/poetry-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
56 lines (51 loc) · 1.28 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
repos:
- repo: https://github.com/psf/black
rev: 21.9b0
hooks:
- id: black
exclude: ^poetry/core/_vendor
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
exclude: |
(?x)(
^poetry/core/utils/_typing.py$
| ^poetry/core/utils/_compat.py$
| ^poetry/core/_vendor
)
- repo: https://github.com/pycqa/isort
rev: 5.9.3
hooks:
- id: isort
additional_dependencies: [toml]
exclude: |
(?x)(
^.*/?setup\.py$
| ^poetry/core/_vendor
| tests/.*\.pyi$
)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
exclude: |
(?x)(
^tests/.*/fixtures/.*
| ^poetry/core/_vendor
)
- id: end-of-file-fixer
exclude: |
(?x)(
^tests/.*/fixtures/.*
| ^poetry/core/_vendor
)
- id: debug-statements
exclude: ^poetry/core/_vendor
- id: check-json
exclude: ^poetry/core/_vendor
- id: pretty-format-json
exclude: ^poetry/core/_vendor
args:
- --no-sort-keys
- --autofix