mgr/cephadm: Introduce tox and autopep8#36348
Conversation
94226ff to
08c43ee
Compare
def779c to
483bdd1
Compare
| ]) | ||
| )) | ||
| #@mock.patch("mgr_module.MgrModule._ceph_get") | ||
| # @mock.patch("mgr_module.MgrModule._ceph_get") |
jmolmo
left a comment
There was a problem hiding this comment.
Great thing!! Why do not include also a code linter?
Because i don't know how the cephadm code is checked in Teuthology. Adding a linter is the job of a cephadm team member with more insight than myself. |
360cfb9 to
b815d1e
Compare
|
jenkins test make check |
b815d1e to
1945506
Compare
a0a60e2 to
f94e76a
Compare
f94e76a to
6824123
Compare
6824123 to
4ef251c
Compare
|
jenkins test make check |
|
I think we need to split this into smaller PRs. otherwise we'll end up rebasing like forever, |
I'm open for suggestions. |
4ef251c to
321898e
Compare
can you make a new PR with just the tox changes? |
This PR introduces tox and autopep8 to format the Python code according to PEP8. It does NOT include any lint related things. Signed-off-by: Volker Theile <vtheile@suse.com>
321898e to
7d8a3b6
Compare
Done |
|
@votdev @sebastian-philipp this change broke the rpm builds. see https://shaman.ceph.com/builds/ceph/master/bd0b900325335ade70286ca77943e361aea17f78/default/221061/. how did you test it? |
This PR introduces tox and autopep8 to format the Python code according to PEP8. It does NOT include any lint related things.
The Python code of the cephadm mgr module can be formated using
tox -e fixfrom thesrc/pybind/mgrdirectory. This should be done by every developer before commiting a PR. Thus the code formatting keeps consistent.Superseds: #36325
Signed-off-by: Volker Theile vtheile@suse.com
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard backendjenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox