Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1367092 - [flake8] Use per-file-ignores to skip __init__.py files…
Browse files Browse the repository at this point in the history
… under testing/marionette and testing/firefox-ui, r=ato

This allows us to only skip the "unused import" config in these files rather
than the entire thing. This also removes the only two uses of "**" in the
exclusion rules which made things a bit simpler for me later on in the series.

Differential Revision: https://phabricator.services.mozilla.com/D20493
  • Loading branch information
ahal committed Feb 22, 2019
1 parent 669ff59 commit b94a02f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ exclude =
mobile/android/*.configure,
node_modules,
security/nss/,
testing/firefox-ui/**/__init__.py,
testing/marionette/**/__init__.py,
testing/marionette/harness/marionette_harness/runner/mixins,
testing/marionette/harness/marionette_harness/tests,
testing/mochitest/pywebsocket,
Expand All @@ -41,4 +39,6 @@ ignore =

per-file-ignores =
ipc/ipdl/*: F403, F405
testing/firefox-ui/**/__init__.py: F401
testing/marionette/**/__init__.py: F401
testing/mozharness/configs/*: E124, E127, E128, E131, E231, E261, E265, E266, E501, W391

0 comments on commit b94a02f

Please sign in to comment.