mirror of
https://github.com/ceph/ceph
synced 2025-02-23 19:17:37 +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)
|
||||
include(AddCephTest)
|
||||
add_tox_test(cephadm TOX_ENVS py3 mypy)
|
||||
add_tox_test(cephadm TOX_ENVS py3 mypy flake8)
|
||||
endif()
|
||||
|
1413
src/cephadm/cephadm
1413
src/cephadm/cephadm
File diff suppressed because it is too large
Load Diff
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user