python code does not pass the flake8 static checks
| Affects | Status | Importance | Assigned to | Milestone | ||
|---|---|---|---|---|---|---|
| | camera-app |
Fix Released
|
Undecided
|
Leo Arias | ||
| | qakit |
Undecided
|
Federico Gimenez | |||
| | ubuntu-keyboard |
Fix Released
|
Undecided
|
Leo Arias | ||
| | address-book-app (Ubuntu) |
Undecided
|
Federico Gimenez | |||
| | camera-app (Ubuntu) |
Undecided
|
Unassigned | |||
| ubuntu-keyboard (Ubuntu) | ||||||
| | Vivid |
Undecided
|
Unassigned | |||
| | unity8 (Ubuntu) |
Medium
|
Unity UI Team | |||
| | webbrowser-app (Ubuntu) |
Undecided
|
Leo Arias | |||
| | Vivid |
Undecided
|
Unassigned | |||
Bug Description
Flake8 checks that the python code follows the right code style, and does some static checks for errors.
This branch is not passing the static tests.
Related branches
- Leo Arias (community): Approve on 2015-04-21
- PS Jenkins bot: Needs Fixing (continuous-integration) on 2015-04-21
- Unity Team: Pending requested 2015-04-16
-
Diff: 512 lines (+74/-53)14 files modifiedtests/autopilot/unity8/application_lifecycle/tests/test_application_lifecycle.py (+0/-2)
tests/autopilot/unity8/fixture_setup.py (+2/-0)
tests/autopilot/unity8/greeter/tests/__init__.py (+3/-1)
tests/autopilot/unity8/greeter/tests/test_args.py (+4/-2)
tests/autopilot/unity8/indicators/__init__.py (+8/-7)
tests/autopilot/unity8/indicators/tests/__init__.py (+1/-0)
tests/autopilot/unity8/indicators/tests/test_action_latency.py (+21/-18)
tests/autopilot/unity8/shell/emulators/dash.py (+15/-10)
tests/autopilot/unity8/shell/emulators/greeter.py (+0/-1)
tests/autopilot/unity8/shell/emulators/tutorial.py (+0/-1)
tests/autopilot/unity8/shell/tests/__init__.py (+1/-0)
tests/autopilot/unity8/shell/tests/test_lock_screen.py (+4/-4)
tests/autopilot/unity8/shell/tests/test_notifications.py (+14/-6)
tests/autopilot/unity8/shell/tests/test_tutorial.py (+1/-1)
- Olivier Tilloy: Approve on 2015-04-24
- PS Jenkins bot: Needs Fixing (continuous-integration) on 2015-04-22
-
Diff: 49 lines (+9/-8)3 files modifieddebian/control (+1/-1)
tests/autopilot/webapp_container/tests/test_app_launch.py (+7/-6)
tests/unittests/sanity/CMakeLists.txt (+1/-1)
- Leo Arias: Pending requested 2015-04-28
- Thomi Richards: Pending requested 2015-04-28
- Vincent Ladeuil: Pending requested 2015-04-28
-
Diff: 428 lines (+65/-68)11 files modifiedqakit/__init__.py (+2/-2)
qakit/commands.py (+8/-7)
qakit/config.py (+2/-2)
qakit/format.py (+18/-12)
qakit/lkkb.py (+11/-9)
qakit/tests/__init__.py (+2/-3)
qakit/tests/test_config.py (+2/-4)
qakit/tests/test_format.py (+5/-6)
qakit/tests/test_trello.py (+3/-6)
qakit/trello.py (+7/-12)
setup.py (+5/-5)
- Vincent Ladeuil (community): Approve on 2015-04-18
- Leo Arias (community): Approve on 2015-04-17
- Thomi Richards: Pending requested 2015-04-17
-
Diff: 428 lines (+65/-68)11 files modifiedqakit/__init__.py (+2/-2)
qakit/commands.py (+8/-7)
qakit/config.py (+2/-2)
qakit/format.py (+18/-12)
qakit/lkkb.py (+11/-9)
qakit/tests/__init__.py (+2/-3)
qakit/tests/test_config.py (+2/-4)
qakit/tests/test_format.py (+5/-6)
qakit/tests/test_trello.py (+3/-6)
qakit/trello.py (+7/-12)
setup.py (+5/-5)
- Renato Araujo Oliveira Filho (community): Approve on 2015-04-17
- PS Jenkins bot: Needs Fixing (continuous-integration) on 2015-04-17
- Leo Arias (community): Approve on 2015-04-17
-
Diff: 300 lines (+73/-42)8 files modifiedtests/autopilot/address_book_app/__init__.py (+3/-3)
tests/autopilot/address_book_app/pages/_contact_editor.py (+4/-2)
tests/autopilot/address_book_app/pages/_sim_card_import_page.py (+4/-1)
tests/autopilot/address_book_app/tests/test_add_contact.py (+10/-9)
tests/autopilot/address_book_app/tests/test_custom_proxy_objects.py (+1/-0)
tests/autopilot/address_book_app/tests/test_edit_contact.py (+4/-2)
tests/autopilot/address_book_app/tests/test_multiple_pick_mode.py (+18/-10)
tests/autopilot/address_book_app/tests/test_single_pick_mode.py (+29/-15)
- PS Jenkins bot: Needs Fixing (continuous-integration) on 2015-05-15
- Ubuntu Phablet Team: Pending requested 2015-04-29
-
Diff: 680 lines (+118/-85)13 files modifieddebian/control (+1/-0)
debian/rules (+4/-0)
tests/autopilot/camera_app/emulators/main_window.py (+5/-5)
tests/autopilot/camera_app/emulators/panel.py (+5/-3)
tests/autopilot/camera_app/tests/__init__.py (+2/-5)
tests/autopilot/camera_app/tests/test_capture.py (+35/-20)
tests/autopilot/camera_app/tests/test_diskspace.py (+22/-17)
tests/autopilot/camera_app/tests/test_flash.py (+12/-9)
tests/autopilot/camera_app/tests/test_focus.py (+3/-3)
tests/autopilot/camera_app/tests/test_gallery_view.py (+10/-6)
tests/autopilot/camera_app/tests/test_options.py (+6/-3)
tests/autopilot/camera_app/tests/test_photo_editor.py (+11/-12)
tests/autopilot/camera_app/tests/test_zoom.py (+2/-2)
- Ken VanDine: Approve on 2015-05-06
- Michael Sheldon (community): Approve on 2015-05-06
- PS Jenkins bot: Needs Fixing (continuous-integration) on 2015-04-29
-
Diff: 405 lines (+75/-46)6 files modifieddebian/control (+1/-0)
debian/rules (+1/-0)
tests/autopilot/ubuntu_keyboard/emulators/keyboard.py (+13/-8)
tests/autopilot/ubuntu_keyboard/emulators/keypad.py (+10/-2)
tests/autopilot/ubuntu_keyboard/tests/test_keyboard.py (+47/-35)
tools/overrides-from-hunspell.py (+3/-1)
| Changed in unity8 (Ubuntu): | |
| status: | New → Triaged |
| importance: | Undecided → Medium |
| Changed in unity8 (Ubuntu): | |
| status: | Triaged → In Progress |
| assignee: | nobody → Michał Sawicz (saviq) |
| Changed in webbrowser-app (Ubuntu): | |
| status: | New → In Progress |
| assignee: | nobody → Leo Arias (elopio) |
| Olivier Tilloy (osomon) wrote : | #1 |
| Leo Arias (elopio) wrote : | #2 |
Hey osomon.
The problem on that script is that it's using the py2 version of flake8. You need to run it like this:
python3 -m flake8 <dir>
I'll add that to my branch. Please check it, because I'm not sure if on cmake I should be calling python3 directly; I have seen some fancier things in some other projects.
| Changed in qakit: | |
| assignee: | nobody → Federico Gimenez (fgimenez) |
| Changed in address-book-app (Ubuntu): | |
| assignee: | nobody → Federico Gimenez (fgimenez) |
| status: | New → In Progress |
| Changed in camera-app: | |
| assignee: | nobody → Leo Arias (elopio) |
| status: | New → In Progress |
| Changed in ubuntu-keyboard: | |
| status: | New → In Progress |
| assignee: | nobody → Leo Arias (elopio) |
| Changed in unity8 (Ubuntu): | |
| assignee: | Michał Sawicz (saviq) → Unity Team (unity-team) |
| assignee: | Unity Team (unity-team) → Unity UI Team (unity-ui-team) |
| Changed in webbrowser-app (Ubuntu): | |
| status: | In Progress → Fix Released |
| Launchpad Janitor (janitor) wrote : | #3 |
This bug was fixed in the package unity8 - 8.02+15.
---------------
unity8 (8.02+15.
[ Albert Astals Cid ]
* Workarounds for concierge mode.
[ CI Train Bot ]
* New rebuild forced.
* Resync trunk.
unity8 (8.02+15.
[ Albert Astals Cid ]
* Make runtests fake a test error if make fails
* Make the test more stable
* Use dbus-test-runner instead of dbus-launch
[ Daniel d'Andrada ]
* DirectionalDrag
* Fix EdgeDragEvaluator when a drag can happen both ways
(Direction.
[ Josh Arenson ]
* Remove panelHeight property as it is unused.
[ Leo Arias ]
* Initial clean up of the autopilot tests set up. Removed the touch
device from the test case. Moved the restart of unity to a fixture.
Removed the unused DragMixin. Updated the setUpClass to use
process_
fixed. Use the toolkit helper to set the testability environment
variable. Fixed the indicators base class that was restarting unity
twice. (LP: #1238417, #1447206)
* Use the base class from the toolkit in autopilot tests.
[ Michael Zanetti ]
* emit application-stop when we're going down (LP: #1326513)
[ Michał Sawicz ]
* UNITY_SCOPES_LIST is no more
[ handsome_feng<email address hidden> ]
* When click the favorite scope in Dash Manager , it just return to
the corresponding scope page. (LP: #1447056)
unity8 (8.02+15.
[ Albert Astals Cid ]
* Compile with Qt 5.5 (LP: #1437238)
* Different way of top aligning labels when the other one in the row
is multiline (LP: #1442085)
* make pot_file
[ Andrea Cimitan ]
* Set sourceSize for DashBackground.qml Image
[ CI Train Bot ]
* New rebuild forced.
* Resync trunk. added: po/sk.po
[ Daniel d'Andrada ]
* Move handling of command line options to a separate class
* Refactor tst_PhysicalKey
[ Leo Arias ]
* For autopilot tests, use the device simulation scenarios from the
toolkit.
[ Leonardo Arias Fonseca ]
* For autopilot tests, use the device simulation scenarios from the
toolkit.
[ Michael Zanetti ]
* Make sure dnd mode is ended properly when drag gesture is cancelled
(LP: #1444949)
[ Michał Sawicz ]
* Fix flake8 warnings (LP: #1444170)
* Move mock indicator service to unity8-fake-env, as it's a binary-
dependent package.
[ Nick Dedekind ]
* Use asynchronous dbus requests for property updates. (LP: #1436982)
-- CI Train Bot <email address hidden> Mon, 11 May 2015 08:29:58 +0000
| Changed in unity8 (Ubuntu): | |
| status: | In Progress → Fix Released |
| Launchpad Janitor (janitor) wrote : | #4 |
This bug was fixed in the package address-book-app - 0.2+15.
---------------
address-book-app (0.2+15.
[ CI Train Bot ]
* Resync trunk. added: po/ia.po
[ Sebastien Bacher ]
* Specify the gettext domain to use, the contact widgets are imported
by other components (like the dialer) and trying to load the
translations from the current domain is not working then. (LP:
#1447516)
-- CI Train Bot <email address hidden> Thu, 28 May 2015 13:18:13 +0000
| Changed in address-book-app (Ubuntu): | |
| status: | In Progress → Fix Released |
| Launchpad Janitor (janitor) wrote : | #5 |
This bug was fixed in the package camera-app - 3.0.0+15.
---------------
camera-app (3.0.0+
[ Brendan Donegan ]
* Use pointing_device from self.app instead of the testCase passed in
[ CI Train Bot ]
* New rebuild forced.
[ Florian Boucault ]
* Remove hardcoded actions in GalleryViewHeader to make it extensible.
* Set desktop file flags informing Unity that the camera app is doing
its own content rotation when the device rotates. Manually
rotate/position depending on device orientation: photo roll bottom
edge indicators and content first photo roll hint snapshot animation
countdown timer (LP: #1467461, #1466409, #1467658, #1467661,
#1447694, #1468269, #1367792, #1468284)
[ Leo Arias ]
* Fixed the static errors reported by flake8. Added the check to the
debian build tests. Added python3-flake8 as a build dependency. (LP:
#1444170)
* Use pointing_device from self.app instead of the testCase passed in
[ Olivier Tilloy ]
* Updated application icon. removed: camera-app.svg added: camera-
app.png
camera-app (3.0.0+
[ CI Train Bot ]
* Resync trunk.
[ Leo Arias ]
* Use the base class from the toolkit in autopilot tests.
[ Omer Akram ]
* Autopilot: Ensure the media directories exist before trying to
delete data from them. (LP: #1444650)
-- CI Train Bot <email address hidden> Tue, 07 Jul 2015 11:09:20 +0000
| Changed in camera-app (Ubuntu): | |
| status: | New → Fix Released |
| Changed in ubuntu-keyboard: | |
| status: | In Progress → Fix Released |
| Changed in camera-app: | |
| status: | In Progress → Fix Released |

Leo, how is flake8 invoked to check for errors/warnings? I’m asking because webbrowser-app has a unit test that runs flake8 on its autopilot tests, so any error/warning should prevent it from landing. See http:// bazaar. launchpad. net/~phablet- team/webbrowser -app/trunk/ view/head: /tests/ unittests/ sanity/ CMakeLists. txt.