Merge ~smoser/cloud-init:feature/flake8-upgrade into cloud-init:master
| Status: | Merged |
|---|---|
| Merged at revision: | 2825a917e5fa130818c0d77219f32961b99a057f |
| Proposed branch: | ~smoser/cloud-init:feature/flake8-upgrade |
| Merge into: | cloud-init:master |
| Diff against target: |
297 lines (+31/-29) 18 files modified
cloudinit/sources/DataSourceAzure.py (+1/-0) test-requirements.txt (+4/-4) tests/unittests/test_datasource/test_altcloud.py (+1/-1) tests/unittests/test_datasource/test_azure.py (+1/-1) tests/unittests/test_datasource/test_maas.py (+1/-1) tests/unittests/test_datasource/test_opennebula.py (+2/-2) tests/unittests/test_datasource/test_openstack.py (+2/-2) tests/unittests/test_datasource/test_ovf.py (+1/-1) tests/unittests/test_distros/test_resolv.py (+1/-1) tests/unittests/test_handler/test_handler_power_state.py (+2/-2) tests/unittests/test_handler/test_handler_snappy.py (+2/-2) tests/unittests/test_helpers.py (+1/-1) tests/unittests/test_net.py (+1/-1) tests/unittests/test_util.py (+5/-5) tools/hacking.py (+3/-2) tools/mock-meta.py (+1/-1) tools/net-convert.py (+1/-1) tox.ini (+1/-1) |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Server Team CI bot | continuous-integration | Approve on 2017-05-23 | |
| Joshua Powers (community) | Approve on 2017-05-23 | ||
| cloud-init commiters | 2017-05-23 | Pending | |
|
Review via email:
|
|||
Commit Message
flake8: move the pinned version of flake8 up to 3.3.0
This just moves flake8 and related tools up to newer versions and fixes the
complaints associated with that.
We added to the list of flake8 ignores:
H102: do not put vim info in source files
H304: no relative imports
| Scott Moser (smoser) wrote : | # |
| Scott Moser (smoser) wrote : | # |
for quick reference, H304 shows:
http://
PASSED: Continuous integration, rev:a4f3aab9cdc
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
Click here to trigger a rebuild:
https:/
| Joshua Powers (powersj) wrote : | # |
LGTM thank you for updating the versions as well.
The tip commands all pass, tox passes, and the versions all look to be good to go.
| Scott Moser (smoser) wrote : | # |
Hm..
So after doing this I noticed that pep8 is still in my tox flake8 env and wondered why.
$ pip check
hacking 0.13.0 has requirement flake8<
hacking 0.13.0 has requirement mccabe==0.2.1, but you have mccabe 0.6.1.
hacking 0.13.0 has requirement pyflakes==0.8.1, but you have pyflakes 1.5.0.
I'm not sure of the repercussions of this. It does seem to work.
PASSED: Continuous integration, rev:2825a917e5f
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
Click here to trigger a rebuild:
https:/
| Scott Moser (smoser) wrote : | # |
https:/
is a 'hacking' upstream bug on versions.
| Scott Moser (smoser) wrote : | # |
Given that these are all generally acceptable changes I'm going to pull this. Even if its possible we'd find fallout of the hacking issue.


I expect :vi info in files (H102)
for H304, I dont have strong feelings. we could fix these.