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