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