Skip to content

Commit 07682d1

Browse files
committed
update black, cleanup static check rules
Signed-off-by: Aleksei Stepanov <penguinolog@gmail.com>
1 parent 9460417 commit 07682d1

File tree

3 files changed

+13
-49
lines changed

3 files changed

+13
-49
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ build-backend="setuptools.build_meta"
1111
[tool.black]
1212
line-length = 120
1313
safe = true
14-
py36 = true
14+
target-version = ["py36", "py37", "py38"]
1515

1616
[tool.isort]
1717
line_length = 120

setup.cfg

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,17 @@ exclude =
4040
docs
4141
ignore =
4242
E203,
43-
W503
4443
# whitespace before ':'
44+
W503,
4545
# line break before binary operator
46+
D401,
47+
# First line should be in imperative mood; try rephrasing
48+
D202,
49+
# No blank lines allowed after function docstring
50+
D203,
51+
# 1 blank line required before class docstring
52+
D213
53+
# Multi-line docstring summary should start at the second line
4654
show-pep8 = True
4755
show-source = True
4856
count = True
@@ -51,16 +59,13 @@ max-line-length = 120
5159
[pydocstyle]
5260
ignore =
5361
D401,
54-
D202,
55-
D203,
56-
D213
5762
# First line should be in imperative mood; try rephrasing
63+
D202,
5864
# No blank lines allowed after function docstring
65+
D203,
5966
# 1 blank line required before class docstring
67+
D213
6068
# Multi-line docstring summary should start at the second line
6169

6270
[aliases]
6371
test=pytest
64-
65-
[tool:pytest]
66-
addopts = -vvv -s -p no:django -p no:ipdb

tox.ini

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -75,47 +75,6 @@ deps =
7575
-r{toxinidir}/CI_REQUIREMENTS.txt
7676
commands = pylint exec_helpers
7777

78-
[flake8]
79-
exclude =
80-
.venv,
81-
.git,
82-
.tox,
83-
dist,
84-
doc,
85-
*lib/python*,
86-
*egg,
87-
build,
88-
__init__.py,
89-
docs
90-
ignore =
91-
E203,
92-
# whitespace before ':'
93-
W503,
94-
# line break before binary operator
95-
D401,
96-
# First line should be in imperative mood; try rephrasing
97-
D202,
98-
# No blank lines allowed after function docstring
99-
D203,
100-
# 1 blank line required before class docstring
101-
D213
102-
# Multi-line docstring summary should start at the second line
103-
show-pep8 = True
104-
show-source = True
105-
count = True
106-
max-line-length = 120
107-
108-
[pydocstyle]
109-
ignore =
110-
D401,
111-
# First line should be in imperative mood; try rephrasing
112-
D202,
113-
# No blank lines allowed after function docstring
114-
D203,
115-
# 1 blank line required before class docstring
116-
D213
117-
# Multi-line docstring summary should start at the second line
118-
11978
[testenv:docs]
12079
deps =
12180
sphinx

0 commit comments

Comments
 (0)