Merge lp://qastaging/~elopio/unity8/flake8 into lp://qastaging/unity8

Proposed by Leo Arias
Status: Merged
Approved by: Michał Sawicz
Approved revision: 978
Merged at revision: 1001
Proposed branch: lp://qastaging/~elopio/unity8/flake8
Merge into: lp://qastaging/unity8
Diff against target: 561 lines (+137/-72)
10 files modified
.bazaar/plugins/makecheck_unity_phablet.py (+17/-9)
tests/autopilot/unity8/process_helpers.py (+4/-3)
tests/autopilot/unity8/shell/tests/__init__.py (+1/-2)
tests/autopilot/unity8/shell/tests/disabled_test_hud.py (+44/-13)
tests/autopilot/unity8/shell/tests/test_emulators.py (+0/-2)
tests/autopilot/unity8/shell/tests/test_lock_screen.py (+4/-5)
tests/autopilot/unity8/shell/tests/test_notifications.py (+15/-10)
tests/autopilot/unity8/shell/tests/test_system_integration.py (+10/-5)
tests/autopilot/unity8/shell/tests/test_upstart.py (+20/-11)
tests/whitespace/check_whitespace.py (+22/-12)
To merge this branch: bzr merge lp://qastaging/~elopio/unity8/flake8
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Michał Sawicz Approve
Review via email: mp+223495@code.qastaging.launchpad.net

Commit message

Fixed style and static python errors.

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.

No related MPs.

 * Did you perform an exploratory manual test run of your code change and any related functionality?

More or less. I ran all the tests to confirm they kept working.

 * Did you make sure that your branch does not contain spurious tags?

Yes I did.

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?

No packaging changes.

 * If you changed the UI, has there been a design review?

No UI changes.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
lp://qastaging/~elopio/unity8/flake8 updated
975. By Leo Arias

Merged with trunk.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Michał Sawicz (saviq) wrote :

I'm still getting:
$ flake8 tests/
tests/autopilot/unity8/process_helpers.py:176:8: E713 test for membership should be 'not in'
tests/autopilot/unity8/shell/tests/__init__.py:145:9: E265 block comment should start with '# '
tests/whitespace/check_whitespace.py:42:60: E901 SyntaxError: invalid syntax

Should we add flake8 as a test?

=== modified file 'tests/CMakeLists.txt'
--- tests/CMakeLists.txt 2014-05-30 09:21:39 +0000
+++ tests/CMakeLists.txt 2014-06-27 07:29:39 +0000
@@ -13,3 +13,5 @@
 add_subdirectory(plugins)
 add_subdirectory(utils)
 add_subdirectory(uqmlscene)
+
+add_test(flake8 flake8 ${CMAKE_CURRENT_SOURCE_DIR})

Or maybe two separate ones - one for whitelist, one for autopilot?

review: Needs Fixing
lp://qastaging/~elopio/unity8/flake8 updated
976. By Leo Arias

Merged with trunk.

977. By Leo Arias

More flake8 fixes.

978. By Leo Arias

Fixed the print error.

Revision history for this message
Michał Sawicz (saviq) wrote :

As discussed, we'll do a pre-commit hook instead. This is good then!

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Flake happy!

 * Did CI run pass? If not, please explain why.
Trunk issues.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches