Bug 1614879 [wpt PR 21750] - Set request mode for beacon request with non-cors-safeli...
[gecko.git] / .flake8
blobaced4a596aba6bce4492db037ca550593108f561
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/settled.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     # This file uses py3.7 only syntax, so can't currently be checked by flake8 in-tree
91     tools/crashreporter/system-symbols/win/symsrv-fetch.py
93 # See:
94 #   - http://flake8.pycqa.org/en/latest/user/error-codes.html
95 #   - http://pep8.readthedocs.io/en/latest/intro.html#configuration
96 ignore =
97     # These should be triaged and either fixed or moved to the list below.
98     W504, W605, W606,
99     # These are intentionally disabled (not necessarily for good reason).
100     #   F723: syntax error in type comment
101     #       text contains quotes which breaks our custom JSON formatter
102     F723, E121, E123, E126, E129, E133, E226, E241, E242, E402, E704, E741, W503,
104 per-file-ignores =
105     # These paths are intentionally excluded.
106     ipc/ipdl/*: F403, F405
107     layout/tools/reftest/selftest/conftest.py: F811
108     # cpp_eclipse has a lot of multi-line embedded XML which exceeds line length
109     python/mozbuild/mozbuild/backend/cpp_eclipse.py: E501
110     testing/firefox-ui/**/__init__.py: F401
111     testing/marionette/**/__init__.py: F401
112     testing/mochitest/tests/python/conftest.py: F811
113     testing/mozbase/manifestparser/tests/test_filters.py: E731
114     testing/mozharness/configs/*: E124, E127, E128, E131, E231, E261, E265, E266, E501, W391
116     # These paths contain Python-2 only syntax which cause errors since flake8
117     # is run with Python 3.
118     browser/app/macversion.py: F633
119     build/**: F633, F821
120     config/**: F633, F821
121     ipc/pull-chromium.py: F633
122     js/**: F633, F821
123     memory/**: F821
124     mozglue/**: F821
125     python/mozbuild/**: F821
126     python/mozversioncontrol/**: F821
127     testing/mozharness/**: F821
128     testing/talos/**: F821
129     toolkit/components/telemetry/**: F821
130     tools/tryselect/**: F821
131     testing/firefox-ui/tests/functional/safebrowsing/test_initial_download.py: F821
132     testing/gtest/rungtests.py: F633
133     testing/marionette/**: F821
134     testing/mochitest/**: F821
135     testing/xpcshell/**: F633, F821
136     xpcom/idl-parser/xpidl/**: F633, F821