Merge pull request #39699 from mgfritch/cephadm-bin-flake8-quotes

cephadm: introduce flake8 and flake8-quotes

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
This commit is contained in:
Sebastian Wagner 2021-03-04 15:59:07 +01:00 committed by GitHub
commit 7744777de1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 730 additions and 710 deletions

View File

@ -1,4 +1,4 @@
if(WITH_TESTS)
include(AddCephTest)
add_tox_test(cephadm TOX_ENVS py3 mypy)
add_tox_test(cephadm TOX_ENVS py3 mypy flake8)
endif()

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,22 @@
[tox]
envlist = py3, mypy
envlist = py3, mypy, flake8
skipsdist=true
[flake8]
max-line-length = 100
inline-quotes = '
ignore =
E501,
W503,
exclude =
.tox,
.vagrant,
__pycache__,
*.pyc,
templates,
.eggs
statistics = True
[testenv]
skip_install=true
deps =
@ -13,3 +28,11 @@ commands=pytest {posargs}
basepython = python3
deps = mypy==0.790
commands = mypy --config-file ../mypy.ini {posargs:cephadm}
[testenv:flake8]
basepython = python3
deps =
flake8
flake8-quotes
commands =
flake8 --config=tox.ini {posargs:cephadm}