Bug 1804780 [wpt PR 37412] - Fix scrollend-event-for-user-scroll test, a=testonly
[gecko.git] / .flake8
blob6306c0ff58ac27ab1f8aad0592b36e3e30d8e1c4
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     ipc/ipdl/ipdl,
8     layout/base/tests/marionette,
9     layout/reftests/border-image,
10     layout/reftests/fonts,
11     layout/reftests/w3c-css,
12     layout/style,
13     media/libdav1d/generate_source.py,
14     moz.configure,
15     netwerk/dns/prepare_tlds.py,
16     netwerk/protocol/http/make_incoming_tables.py,
17     python/l10n/fluent_migrations,
18     security/manager/ssl/tests/unit,
19     servo/components/style,
20     testing/condprofile/condprof/android.py,
21     testing/condprofile/condprof/creator.py,
22     testing/condprofile/condprof/desktop.py,
23     testing/condprofile/condprof/runner.py,
24     testing/condprofile/condprof/scenarii/heavy.py,
25     testing/condprofile/condprof/scenarii/settled.py,
26     testing/condprofile/condprof/scenarii/synced.py
27     testing/condprofile/condprof/helpers.py,
28     testing/jsshell/benchmark.py,
29     testing/marionette/mach_commands.py,
30     testing/mozharness/docs,
31     testing/mozharness/examples,
32     testing/mozharness/external_tools,
33     testing/mozharness/mach_commands.py,
34     testing/mozharness/manifestparser,
35     testing/mozharness/mozprocess,
36     testing/mozharness/setup.py,
37     testing/parse_build_tests_ccov.py,
38     testing/runtimes/writeruntimes.py,
39     testing/tools/iceserver/iceserver.py,
40     testing/tools/websocketprocessbridge/websocketprocessbridge.py,
41     toolkit/components/featuregates,
42     toolkit/content/tests/chrome/file_about_networking_wsh.py,
43     toolkit/library/build/dependentlibs.py,
44     toolkit/locales/generate_update_locale.py,
45     toolkit/mozapps,
46     toolkit/moz.configure,
47     toolkit/nss.configure,
49     # These paths are intentionally excluded (not necessarily for good reason).
50     build/moz.configure/*.configure,
51     build/pymake/,
52     browser/extensions/mortar/ppapi/,
53     browser/moz.configure,
54     dom/canvas/test/webgl-conf/checkout/closure-library/,
55     editor/libeditor/tests/browserscope/,
56     intl/icu/,
57     ipc/chromium/src/third_party/,
58     js/*.configure,
59     gfx/angle/,
60     gfx/harfbuzz,
61     gfx/skia/,
62     memory/moz.configure,
63     mobile/android/*.configure,
64     node_modules,
65     python/mozbuild/mozbuild/test/configure/data,
66     security/nss/,
67     testing/marionette/harness/marionette_harness/runner/mixins,
68     testing/marionette/harness/marionette_harness/tests,
69     testing/mochitest/pywebsocket3,
70     testing/mozharness/configs/test/test_malformed.py,
71     testing/web-platform/tests,
72     tools/lint/test/files,
73     tools/crashreporter/*.configure,
74     .ycm_extra_conf.py,
76 # See:
77 #   - http://flake8.pycqa.org/en/latest/user/error-codes.html
78 #   - http://pep8.readthedocs.io/en/latest/intro.html#configuration
79 ignore =
80     # These should be triaged and either fixed or moved to the list below.
81     W605, W606,
82     # These are intentionally disabled (not necessarily for good reason).
83     #   F723: syntax error in type comment
84     #       text contains quotes which breaks our custom JSON formatter
85     F723, E704, E741,
87     # black is already in charge of formatting, no need to start a formatter
88     # battle here
89     E1, W1, E2, W2, E3, W3, E4, W4, E5, W5
91 per-file-ignores =
92     # These paths are intentionally excluded.
93     ipc/ipdl/*: F403, F405
94     layout/tools/reftest/selftest/conftest.py: F811
95     # cpp_eclipse has a lot of multi-line embedded XML which exceeds line length
96     python/mozbuild/mozbuild/backend/cpp_eclipse.py: E501
97     testing/firefox-ui/**/__init__.py: F401
98     testing/marionette/**/__init__.py: F401
99     testing/mochitest/tests/python/conftest.py: F811
100     testing/mozbase/manifestparser/tests/test_filters.py: E731
101     testing/mozbase/mozlog/tests/test_formatters.py: E501
102     testing/mozharness/configs/*: E124, E127, E128, E131, E231, E261, E265, E266, E501, W391
104     # These paths contain Python-2 only syntax which cause errors since flake8
105     # is run with Python 3.
106     build/compare-mozconfig/compare-mozconfigs.py: F821
107     build/midl.py: F821
108     build/pgo/genpgocert.py: F821
109     config/MozZipFile.py: F821
110     config/check_source_count.py: F821
111     config/tests/unitMozZipFile.py: F821
112     ipc/pull-chromium.py: F633
113     js/src/**: F633, F821
114     python/mozbuild/mozbuild/action/dump_env.py: F821
115     python/mozbuild/mozbuild/dotproperties.py: F821
116     python/mozbuild/mozbuild/testing.py: F821
117     python/mozbuild/mozbuild/util.py: F821
118     testing/mozharness/mozharness/mozilla/testing/android.py: F821
119     testing/mochitest/runtests.py: F821
121 builtins =
122     # For GDB extensions
123     gdb