Bug 1367092 - [flake8] Use per-file-ignores to skip __init__.py files 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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrew Halberstadt 2019-02-22 14:37:55 +00:00
parent c374c10150
commit 034fd32897

View File

@ -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,
@ -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