Bug 1649121: part 9) Simplify `GetMostAncestorListOrTableElement`. r=masayuki
[gecko.git] / .flake8
blob5cb99a0c31dbecbdb8fa627684271be53ab0728f
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/pywebsocket,
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 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/mozharness/configs/*: E124, E127, E128, E131, E231, E261, E265, E266, E501, W391
111     # These paths contain Python-2 only syntax which cause errors since flake8
112     # is run with Python 3.
113     browser/app/macversion.py: F633
114     build/**: F633, F821
115     config/**: F633, F821
116     ipc/pull-chromium.py: F633
117     js/**: F633, F821
118     memory/**: F821
119     mozglue/**: F821
120     python/mozbuild/**: F821
121     python/mozbuild/mozbuild/test/configure/test_checks_configure.py: E128
122     python/mozversioncontrol/**: F821
123     testing/mozharness/**: F821
124     testing/talos/**: F821
125     toolkit/components/telemetry/**: F821
126     tools/tryselect/**: F821
127     testing/firefox-ui/tests/functional/safebrowsing/test_initial_download.py: F821
128     testing/gtest/rungtests.py: F633
129     testing/marionette/**: F821
130     testing/mochitest/**: F821
131     testing/xpcshell/**: F633, F821
132     xpcom/idl-parser/xpidl/**: F633, F821
134 builtins =
135     # For GDB extensions
136     gdb