Merge lp:~ev/uci-engine/pyflakes-the-world into lp:uci-engine
Status: | Superseded |
---|---|
Proposed branch: | lp:~ev/uci-engine/pyflakes-the-world |
Merge into: | lp:uci-engine |
Diff against target: |
880 lines (+67/-558) 30 files modified
branch-source-builder/bsbuilder/tests/test_style.py (+0/-28) britney_proxy/bin/uci-britney-post-deploy (+1/-1) britney_proxy/britney/tests/test_style.py (+0/-28) ci-utils/ci_utils/tests/test_style.py (+0/-28) gatekeeper/gatekeeper/tests/test_style.py (+0/-28) image-builder/imagebuilder/tests/test_style.py (+0/-28) juju-deployer/test_style.py (+0/-32) lander/lander/tests/test_style.py (+0/-42) ppa-creator/ppacreator/tests/test_style.py (+0/-28) publisher/publisher/tests/test_style.py (+0/-42) test_runner/tstrun/tests/test_style.py (+0/-28) testing/run_tests.py (+2/-2) testing/styles.py (+0/-72) testing/test_style.py (+0/-28) tests/integration/test_britney.py (+1/-1) tests/integration/test_bsbuilder.py (+1/-1) tests/integration/test_image_builder.py (+1/-1) tests/integration/test_ppacreator.py (+1/-1) tests/integration/test_publisher.py (+1/-1) tests/integration/test_rabbit.py (+1/-1) tests/integration/test_test_runner.py (+1/-1) tests/integration/test_ticket_system.py (+1/-1) tests/integration/test_validator.py (+1/-1) tests/integration/test_webui.py (+1/-1) tests/project/test_static.py (+10/-30) tests/project/test_syntax.py (+44/-0) ticket_system/project/tests.py (+0/-15) ticket_system/ticket/tests/test_style.py (+0/-38) validator/validator/tests/test_style.py (+0/-42) webui/status/tests.py (+0/-8) |
To merge this branch: | bzr merge lp:~ev/uci-engine/pyflakes-the-world |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Larson | Approve | ||
Review via email: mp+242818@code.launchpad.net |
This proposal has been superseded by a proposal from 2014-11-25.
Commit message
Rather than opt-in to PEP8 and pyflakes testing module-by-module, cover all python code, non-module code included, with an explicit opt-out.
Description of the change
Another branch I worked on while flying to Austin. Rather than opt-in to PEP8 and pyflakes testing module-by-module, cover all python code, non-module code included, with an explicit opt-out.
Time and time again we failed to test for pep8 or pyflakes because we forgot to drop a test_style or find the right directory in the test_style code.
I expect this MP to be controversial, but I no of no other way to ensure we don't miss files with pyflakes in the future.
Unmerged revisions
- 918. By Canonical CI Engineering
-
Adjust comment to make note of the fact that we need to resync with cupstream2distro trunk in a follow up MP.
- 917. By Evan
-
Refer to the previous commit in the syntax tests.
- 916. By Evan
-
Add great explanation of django's test star imports from Vincent.
- 915. By Evan
-
Unneeded import.
- 914. By Evan
-
Make the error text part of the exception so it's only printed at the end. Thanks for the tip, Vincent.
- 913. By Evan
-
Missed one example fix.
- 912. By Evan
-
Use .format
- 911. By Evan
-
Fix up test references in README.
- 910. By Evan
-
Missing reference to test_style.
- 909. By Evan
-
Remove more style tests.
no controversy as far as I'm concerned. Any python we have that doesn't pass pyflakes should need a good reason to opt out, otherwise the fixes are almost always trivial. The +67/-558 diffstat makes it clear that this is far more efficient than reproducing the pyflakes test all over the place too.
A couple of minor style things, but otherwise a huge +1 from me