-
Notifications
You must be signed in to change notification settings - Fork 104
/
.pre-commit-config.yaml
51 lines (48 loc) · 1.38 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: 'v2.0.4'
hooks:
- id: autopep8
args:
- --recursive
- --in-place
- --aggressive
- --aggressive
- --hang-closing
- --max-line-length=88
- repo: https://github.com/PyCQA/isort
rev: "5.13.2"
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
rev: "6.1.0"
hooks:
- id: flake8
args:
- --config
- .flake8
# The list of directories and files to check - matches flake8
# configuration in setup.cfg, but has a slightly different
# purpose. setup.cfg tells flake8 what to check when called e.g.
# by pre-commit or IDE linter integration, the list below tells
# *pre-commit* to which files to apply flake8 check.
files: >
(?x)^(
bin/.*|
examples/.*|
tests/.*|
did/.*|
setup.py
)$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.5.0"
hooks:
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- id: name-tests-test
args:
- --pytest-test-first
exclude: disable_test_trac.py