-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
52 lines (52 loc) · 1.35 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
repos:
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: Sort python imports
- repo: https://github.com/pappasam/toml-sort
rev: v0.23.0
hooks:
- id: toml-sort
name: Sort TOML files
exclude: ^poetry\.lock$
args:
- -i
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: fix-byte-order-marker
name: Fix UTF-8 byte order marker
- id: trailing-whitespace
name: Trim trailing whitespace
exclude_types: [pofile]
- id: end-of-file-fixer
- id: check-ast
name: Python syntax check
- id: debug-statements
name: Python debug statement check
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
name: Blacken python source
- repo: https://github.com/adrienverge/yamllint
rev: v1.30.0
hooks:
- id: yamllint
name: Yamllint check
args: [-c=.yamllint.yaml]
- repo: local
hooks:
- id: poetry-check
name: Poetry check
entry: poetry check
files: (pyproject\.toml|poetry\.lock)$
language: python
pass_filenames: false
additional_dependencies: [poetry]
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
name: Flake8 check