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