Bug 1724594 [wpt PR 29942] - Update wpt metadata, a=testonly
[gecko.git] / .flake8
blobae3cc77be87f59b013cb2d36ada02d5764b41405
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     devtools/shared,
6     dom/bindings,
7     gfx/tests,
8     ipc/ipdl/ipdl,
9     layout/base/tests/marionette,
10     layout/reftests/border-image,
11     layout/reftests/fonts,
12     layout/reftests/w3c-css,
13     layout/style,
14     media/libdav1d/generate_source.py,
15     moz.configure,
16     netwerk/dns/prepare_tlds.py,
17     netwerk/protocol/http/make_incoming_tables.py,
18     python/devtools/migrate-l10n/migrate/main.py,
19     python/l10n/fluent_migrations,
20     python/mozbuild/mozbuild/fork_interpose.py,
21     security/manager/ssl/tests/unit,
22     servo/components/style,
23     testing/condprofile/condprof/android.py,
24     testing/condprofile/condprof/creator.py,
25     testing/condprofile/condprof/desktop.py,
26     testing/condprofile/condprof/runner.py,
27     testing/condprofile/condprof/scenarii/heavy.py,
28     testing/condprofile/condprof/scenarii/settled.py,
29     testing/condprofile/condprof/scenarii/synced.py
30     testing/condprofile/condprof/helpers.py,
31     testing/jsshell/benchmark.py,
32     testing/marionette/mach_commands.py,
33     testing/mozharness/docs,
34     testing/mozharness/examples,
35     testing/mozharness/external_tools,
36     testing/mozharness/mach_commands.py,
37     testing/mozharness/manifestparser,
38     testing/mozharness/mozprocess,
39     testing/mozharness/setup.py,
40     testing/parse_build_tests_ccov.py,
41     testing/runtimes/writeruntimes.py,
42     testing/tools/iceserver/iceserver.py,
43     testing/tools/websocketprocessbridge/websocketprocessbridge.py,
44     toolkit/components/featuregates,
45     toolkit/content/tests/chrome/file_about_networking_wsh.py,
46     toolkit/library/build/dependentlibs.py,
47     toolkit/locales/generate_update_locale.py,
48     toolkit/mozapps,
49     toolkit/moz.configure,
50     toolkit/nss.configure,
52     # These paths are intentionally excluded (not necessarily for good reason).
53     build/build-infer/build-infer.py,
54     build/moz.configure/*.configure,
55     build/pymake/,
56     browser/extensions/mortar/ppapi/,
57     browser/moz.configure,
58     dom/canvas/test/webgl-conf/checkout/closure-library/,
59     editor/libeditor/tests/browserscope/,
60     intl/icu/,
61     ipc/chromium/src/third_party/,
62     js/*.configure,
63     gfx/angle/,
64     gfx/harfbuzz,
65     gfx/skia/,
66     memory/moz.configure,
67     mobile/android/*.configure,
68     node_modules,
69     python/mozbuild/mozbuild/test/configure/data,
70     security/nss/,
71     testing/marionette/harness/marionette_harness/runner/mixins,
72     testing/marionette/harness/marionette_harness/tests,
73     testing/mochitest/pywebsocket3,
74     testing/mozharness/configs/test/test_malformed.py,
75     testing/web-platform/tests,
76     tools/lint/test/files,
77     tools/infer/test/*.configure,
78     tools/crashreporter/*.configure,
79     .ycm_extra_conf.py,
81     # This file uses py3.7 only syntax, so can't currently be checked by flake8 in-tree
82     tools/crashreporter/system-symbols/win/symsrv-fetch.py
84 # See:
85 #   - http://flake8.pycqa.org/en/latest/user/error-codes.html
86 #   - http://pep8.readthedocs.io/en/latest/intro.html#configuration
87 ignore =
88     # These should be triaged and either fixed or moved to the list below.
89     W504, W605, W606,
90     # These are intentionally disabled (not necessarily for good reason).
91     #   F723: syntax error in type comment
92     #       text contains quotes which breaks our custom JSON formatter
93     F723, E121, E123, E126, E129, E133, E226, E241, E242, E402, E704, E741, W503,
95     # black will generate code that breaks these. they're not PEP8 compliant though;
96     # see https://github.com/psf/black/blob/master/docs/compatible_configs.md#flake8
97     W503, E203
99 per-file-ignores =
100     # These paths are intentionally excluded.
101     ipc/ipdl/*: F403, F405
102     layout/tools/reftest/selftest/conftest.py: F811
103     # cpp_eclipse has a lot of multi-line embedded XML which exceeds line length
104     python/mozbuild/mozbuild/backend/cpp_eclipse.py: E501
105     testing/firefox-ui/**/__init__.py: F401
106     testing/marionette/**/__init__.py: F401
107     testing/mochitest/tests/python/conftest.py: F811
108     testing/mozbase/manifestparser/tests/test_filters.py: E731
109     testing/mozbase/mozlog/tests/test_formatters.py: E501
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/mozbuild/mozbuild/test/configure/test_checks_configure.py: E128
123     python/mozversioncontrol/**: F821
124     testing/mozharness/**: F821
125     testing/talos/**: F821
126     toolkit/components/telemetry/**: F821
127     testing/firefox-ui/tests/functional/safebrowsing/test_initial_download.py: F821
128     testing/mochitest/**: F821
129     xpcom/idl-parser/xpidl/**: F633, F821
131 builtins =
132     # For GDB extensions
133     gdb