File tree Expand file tree Collapse file tree 4 files changed +32
-43
lines changed Expand file tree Collapse file tree 4 files changed +32
-43
lines changed Original file line number Diff line number Diff line change 1
1
[flake8]
2
2
max-line-length = 88
3
- ignore =
4
- E203
5
- E501
6
- F401
7
- F403
8
- F405
9
- W503
10
- W605
3
+ extend-ignore =
4
+ E203 # "Whitespace before ':'" - not PEP-8 compliant
5
+ E501 # "Line too long (82 >= 79 characters)"
6
+ per-file-ignores =
7
+ __init__.py:F401
Original file line number Diff line number Diff line change 7
7
- id : trailing-whitespace
8
8
args : [--markdown-linebreak-ext=md]
9
9
- id : end-of-file-fixer
10
+ - id : check-json
10
11
- id : check-toml
11
12
- id : check-yaml
12
13
- id : requirements-txt-fixer
13
14
- repo : https://github.com/pre-commit/mirrors-prettier
14
15
rev : v2.5.1
15
16
hooks :
16
17
- id : prettier
17
- - repo : https://github.com/PyCQA/isort
18
- rev : 5.10.1
19
- hooks :
20
- - id : isort
21
- additional_dependencies :
22
- - toml
23
18
- repo : https://github.com/asottile/setup-cfg-fmt
24
19
rev : v1.20.0
25
20
hooks :
@@ -29,17 +24,31 @@ repos:
29
24
hooks :
30
25
- id : pyupgrade
31
26
args : [--py37-plus]
27
+ # # <<< darker ##
28
+ # # - repo: https://github.com/akaihola/darker
29
+ # # rev: 1.4.0
30
+ # # hooks:
31
+ # # - id: darker
32
+ # # args: ["--isort"] # TODO: Move to pyproject.toml
33
+ # # additional_dependencies:
34
+ # # - isort
35
+ # # === ##
36
+ - repo : https://github.com/PyCQA/isort
37
+ rev : 5.10.1
38
+ hooks :
39
+ - id : isort
32
40
- repo : https://github.com/psf/black
33
41
rev : 22.1.0
34
42
hooks :
35
- - id : black
43
+ - id : black # black-jupyter
44
+ # # >>> black and isort ##
36
45
- repo : https://github.com/PyCQA/bandit
37
46
rev : 1.7.2
38
47
hooks :
39
48
- id : bandit
40
49
args : [--recursive, --quiet]
41
- - repo : https://github .com/PyCQA/flake8
42
- rev : 4.0.1
50
+ - repo : https://gitlab .com/PyCQA/flake8
51
+ rev : 3.9.2
43
52
hooks :
44
53
- id : flake8 # E***, W***, F***
45
54
additional_dependencies :
Original file line number Diff line number Diff line change 1
- proseWrap : always
2
1
printWidth : 88
Original file line number Diff line number Diff line change 1
1
[build-system ]
2
- requires = [" setuptools>=46.4" , " wheel" , " setuptools_scm[toml]>=4.1" ]
2
+ requires = [
3
+ " setuptools>=45" ,
4
+ " setuptools_scm[toml]>=6.2" ,
5
+ " wheel" ,
6
+ ]
3
7
build-backend = " setuptools.build_meta"
4
8
9
+ [tool .setuptools_scm ]
10
+
5
11
[tool .black ]
6
- line-length = 88
7
- target-version = [" py36" , " py37" , " py38" ]
8
- include = ' \.pyi?$'
9
- exclude = '''
10
- /(
11
- \.eggs
12
- | \.git
13
- | \.hg
14
- | \.mypy_cache
15
- | \.tox
16
- | \.venv
17
- | _build
18
- | buck-out
19
- | build
20
- | dist
21
- )/
22
- '''
12
+ target-version = [" py38" , " py39" , " py310" ]
23
13
24
14
[tool .isort ]
25
- multi_line_output = 3
26
- include_trailing_comma = true
27
- force_grid_wrap = 0
28
- use_parentheses = true
29
- line_length = 88
30
-
31
- [tool .setuptools_scm ]
15
+ profile = " black"
You can’t perform that action at this time.
0 commit comments