Bug 1587877 [wpt PR 19627] - Port visibility-interpolation.html to wpt, a=testonly
[gecko.git] / .flake8
blobe662678f0d016997389a5423810dc4218150ac4c
1 [flake8]
2 max-line-length = 99
3 exclude =
4     # These paths should be triaged and either fixed or moved to the list below.
5     client.py,
6     devtools/shared,
7     dom/base,
8     dom/bindings,
9     dom/browser-element,
10     dom/canvas,
11     dom/encoding,
12     dom/security,
13     dom/websocket,
14     gfx/tests,
15     ipc/ipdl/ipdl,
16     layout/base/tests/marionette,
17     layout/reftests/border-image,
18     layout/reftests/fonts,
19     layout/reftests/w3c-css,
20     layout/style,
21     media/libdav1d/generate_source.py,
22     moz.configure,
23     netwerk/dns/prepare_tlds.py,
24     netwerk/protocol/http/make_incoming_tables.py,
25     python/devtools/migrate-l10n/migrate/main.py,
26     python/l10n/fluent_migrations,
27     python/mozbuild/dumbmake,
28     security/manager/ssl/tests/unit,
29     servo/components/style,
30     testing/condprofile/condprof/android.py,
31     testing/condprofile/condprof/creator.py,
32     testing/condprofile/condprof/desktop.py,
33     testing/condprofile/condprof/runner.py,
34     testing/condprofile/condprof/scenarii/heavy.py,
35     testing/condprofile/condprof/scenarii/cold.py,
36     testing/condprofile/condprof/helpers.py,
37     testing/jsshell/benchmark.py,
38     testing/marionette/mach_commands.py,
39     testing/mozharness/docs,
40     testing/mozharness/examples,
41     testing/mozharness/external_tools,
42     testing/mozharness/mach_commands.py,
43     testing/mozharness/manifestparser,
44     testing/mozharness/mozprocess,
45     testing/mozharness/setup.py,
46     testing/parse_build_tests_ccov.py,
47     testing/runtimes/writeruntimes.py,
48     testing/tools/iceserver/iceserver.py,
49     testing/tools/view_gecko_profile/view_gecko_profile.py,
50     testing/tools/websocketprocessbridge/websocketprocessbridge.py,
51     testing/web-platform,
52     toolkit/components/featuregates,
53     toolkit/content/tests/chrome/file_about_networking_wsh.py,
54     toolkit/crashreporter/tools/symbolstore.py,
55     toolkit/crashreporter/tools/unit-symbolstore.py,
56     toolkit/library/build/dependentlibs.py,
57     toolkit/locales/generate_update_locale.py,
58     toolkit/mozapps,
59     toolkit/moz.configure,
60     toolkit/nss.configure,
62     # These paths are intentionally excluded (not necessarily for good reason).
63     build/build-infer/build-infer.py,
64     build/moz.configure/*.configure,
65     build/pymake/,
66     browser/extensions/mortar/ppapi/,
67     browser/moz.configure,
68     dom/canvas/test/webgl-conf/checkout/closure-library/,
69     editor/libeditor/tests/browserscope/,
70     intl/icu/,
71     ipc/chromium/src/third_party/,
72     js/*.configure,
73     gfx/angle/,
74     gfx/harfbuzz,
75     gfx/skia/,
76     memory/moz.configure,
77     mobile/android/*.configure,
78     node_modules,
79     python/mozbuild/mozbuild/test/configure/data,
80     security/nss/,
81     testing/marionette/harness/marionette_harness/runner/mixins,
82     testing/marionette/harness/marionette_harness/tests,
83     testing/mochitest/pywebsocket,
84     testing/mozharness/configs/test/test_malformed.py,
85     tools/lint/test/files,
86     tools/infer/test/*.configure,
87     tools/crashreporter/*.configure,
88     .ycm_extra_conf.py,
90 # See:
91 #   - http://flake8.pycqa.org/en/latest/user/error-codes.html
92 #   - http://pep8.readthedocs.io/en/latest/intro.html#configuration
93 ignore =
94     # These should be triaged and either fixed or moved to the list below.
95     W504, W605, W606,
96     # These are intentionally disabled (not necessarily for good reason).
97     #   F723: syntax error in type comment
98     #       text contains quotes which breaks our custom JSON formatter
99     F723, E121, E123, E126, E129, E133, E226, E241, E242, E402, E704, E741, W503,
101 per-file-ignores =
102     # These paths are intentionally excluded.
103     ipc/ipdl/*: F403, F405
104     layout/tools/reftest/selftest/conftest.py: F811
105     # cpp_eclipse has a lot of multi-line embedded XML which exceeds line length
106     python/mozbuild/mozbuild/backend/cpp_eclipse.py: E501
107     testing/firefox-ui/**/__init__.py: F401
108     testing/marionette/**/__init__.py: F401
109     testing/mochitest/tests/python/conftest.py: F811
110     testing/mozharness/configs/*: E124, E127, E128, E131, E231, E261, E265, E266, E501, W391
112     # These paths contain Python-2 only syntax which cause errors since flake8
113     # is run with Python 3.
114     browser/app/macversion.py: F633
115     build/**: F633, F821
116     config/**: F633, F821
117     ipc/pull-chromium.py: F633
118     js/**: F633, F821
119     memory/**: F821
120     mozglue/**: F821
121     python/mozbuild/**: F821
122     python/mozversioncontrol/**: F821
123     taskcluster/**: F821
124     testing/mozharness/**: F821
125     testing/talos/**: F821
126     toolkit/components/telemetry/**: F821
127     tools/tryselect/**: F821
128     testing/firefox-ui/tests/functional/safebrowsing/test_initial_download.py: F821
129     testing/gtest/rungtests.py: F633
130     testing/marionette/**: F821
131     testing/mochitest/**: F821
132     testing/xpcshell/**: F633, F821
133     xpcom/idl-parser/xpidl/**: F633, F821