Repository navigation
pacific: cephadm: pin flake8 to 5.0.4 - #49058
Merged
Merged
Conversation
to workaround zheller/flake8-quotes#110 flake8 v5.0.4 is the last known-to-work flake8 before flake8 v6.0.0. Fixes: https://tracker.ceph.com/issues/58069 Signed-off-by: Kefu Chai <[email protected]> (cherry picked from commit ecb3fb1)
to silence the warning like ``` flake8 run-test: commands[0] | flake8 --select=F,E9 --exclude=venv,.tox ./tasks/cephfs/test_full.py:6:5: F401 'typing.Optional' imported but unused ``` since we've migrated to python3.6 and up, there is no need to be compatible with Python 2 anymore. Signed-off-by: Kefu Chai <[email protected]> (cherry picked from commit 2413da8) Conflicts: qa/tasks/cephfs/test_full.py [ commit 485841b ("qa: import CommandFailedError from exceptions not run") not in pacific ]
This was referenced Nov 25, 2022
tchaikov
approved these changes
Nov 25, 2022
Contributor
Author
|
Hrm, there seems to be an additional, pacific-only unused import: This is due to: While |
idryomov
force-pushed
the
wip-cephadm-flake8-pacific
branch
from
November 25, 2022 13:56
d8c60a4 to
89f684e
Compare
Contributor
Author
|
Pushed an additional pacific-only change: |
* use annotation style without comment * add noqa to import statement to prevent flake8 from complaining those which import typing modules to silence the warnings like: ``` flake8 run-test: commands[0] | flake8 --config=tox.ini alerts balancer cephadm cli_api crash devicehealth diskprediction_local hello iostat localpool nfs orchestrator prometheus selftest cephadm/schedule.py:5:1: F401 'typing.Callable' imported but unused cephadm/schedule.py:8:1: F401 'ceph.deployment.service_spec.ServiceSpec' imported but unused cephadm/tests/fixtures.py:17:1: F401 'orchestrator.OrchResult' imported but unused orchestrator/module.py:4:1: F401 'typing.Set' imported but unused orchestrator/module.py:17:1: F401 'ceph.deployment.inventory.Device' imported but unused prometheus/module.py:17:1: F401 'typing.DefaultDict' imported but unused 6 F401 'typing.Callable' imported but unused ERROR: InvocationError for command /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/.tox/flake8/bin/flake8 --config=tox.ini alerts ``` Signed-off-by: Kefu Chai <[email protected]> (cherry picked from commit 7894e7b) Conflicts: src/pybind/mgr/orchestrator/module.py [ commit 28314ce ("mgr/cephadm: Adding support for natural sorting") not in pacific ] src/pybind/mgr/cephadm/services/exporter.py [ additional pacific-only change, this file doesn't exist in main ]
idryomov
force-pushed
the
wip-cephadm-flake8-pacific
branch
from
November 25, 2022 14:04
89f684e to
03f21fd
Compare
Contributor
Author
|
jenkins test api |
tchaikov
approved these changes
Nov 27, 2022
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport #49040 to pacific.