mirror of
https://github.com/ceph/ceph
synced 2025-02-24 03:27:10 +00:00
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:
commit
7744777de1
@ -1,4 +1,4 @@
|
|||||||
if(WITH_TESTS)
|
if(WITH_TESTS)
|
||||||
include(AddCephTest)
|
include(AddCephTest)
|
||||||
add_tox_test(cephadm TOX_ENVS py3 mypy)
|
add_tox_test(cephadm TOX_ENVS py3 mypy flake8)
|
||||||
endif()
|
endif()
|
||||||
|
1009
src/cephadm/cephadm
1009
src/cephadm/cephadm
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,22 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = py3, mypy
|
envlist = py3, mypy, flake8
|
||||||
skipsdist=true
|
skipsdist=true
|
||||||
|
|
||||||
|
[flake8]
|
||||||
|
max-line-length = 100
|
||||||
|
inline-quotes = '
|
||||||
|
ignore =
|
||||||
|
E501,
|
||||||
|
W503,
|
||||||
|
exclude =
|
||||||
|
.tox,
|
||||||
|
.vagrant,
|
||||||
|
__pycache__,
|
||||||
|
*.pyc,
|
||||||
|
templates,
|
||||||
|
.eggs
|
||||||
|
statistics = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
skip_install=true
|
skip_install=true
|
||||||
deps =
|
deps =
|
||||||
@ -13,3 +28,11 @@ commands=pytest {posargs}
|
|||||||
basepython = python3
|
basepython = python3
|
||||||
deps = mypy==0.790
|
deps = mypy==0.790
|
||||||
commands = mypy --config-file ../mypy.ini {posargs:cephadm}
|
commands = mypy --config-file ../mypy.ini {posargs:cephadm}
|
||||||
|
|
||||||
|
[testenv:flake8]
|
||||||
|
basepython = python3
|
||||||
|
deps =
|
||||||
|
flake8
|
||||||
|
flake8-quotes
|
||||||
|
commands =
|
||||||
|
flake8 --config=tox.ini {posargs:cephadm}
|
||||||
|
Loading…
Reference in New Issue
Block a user