Skip to content

Commit

Permalink
update black, cleanup static check rules
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksei Stepanov <penguinolog@gmail.com>
  • Loading branch information
penguinolog committed Mar 26, 2019
1 parent 9460417 commit 07682d1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 49 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build-backend="setuptools.build_meta"
[tool.black]
line-length = 120
safe = true
py36 = true
target-version = ["py36", "py37", "py38"]

[tool.isort]
line_length = 120
Expand Down
19 changes: 12 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,17 @@ exclude =
docs
ignore =
E203,
W503
# whitespace before ':'
W503,
# line break before binary operator
D401,
# First line should be in imperative mood; try rephrasing
D202,
# No blank lines allowed after function docstring
D203,
# 1 blank line required before class docstring
D213
# Multi-line docstring summary should start at the second line
show-pep8 = True
show-source = True
count = True
Expand All @@ -51,16 +59,13 @@ max-line-length = 120
[pydocstyle]
ignore =
D401,
D202,
D203,
D213
# First line should be in imperative mood; try rephrasing
D202,
# No blank lines allowed after function docstring
D203,
# 1 blank line required before class docstring
D213
# Multi-line docstring summary should start at the second line

[aliases]
test=pytest

[tool:pytest]
addopts = -vvv -s -p no:django -p no:ipdb
41 changes: 0 additions & 41 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -75,47 +75,6 @@ deps =
-r{toxinidir}/CI_REQUIREMENTS.txt
commands = pylint exec_helpers

[flake8]
exclude =
.venv,
.git,
.tox,
dist,
doc,
*lib/python*,
*egg,
build,
__init__.py,
docs
ignore =
E203,
# whitespace before ':'
W503,
# line break before binary operator
D401,
# First line should be in imperative mood; try rephrasing
D202,
# No blank lines allowed after function docstring
D203,
# 1 blank line required before class docstring
D213
# Multi-line docstring summary should start at the second line
show-pep8 = True
show-source = True
count = True
max-line-length = 120

[pydocstyle]
ignore =
D401,
# First line should be in imperative mood; try rephrasing
D202,
# No blank lines allowed after function docstring
D203,
# 1 blank line required before class docstring
D213
# Multi-line docstring summary should start at the second line

[testenv:docs]
deps =
sphinx
Expand Down

0 comments on commit 07682d1

Please sign in to comment.