Bug 1690340 - Part 4: Insert the "Page Source" before the "Extensions for Developers...
[gecko.git] / .flake8
blobc44797791c994496fc7434af9bffad8ecfbb2be8
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     gfx/tests,
9     ipc/ipdl/ipdl,
10     layout/base/tests/marionette,
11     layout/reftests/border-image,
12     layout/reftests/fonts,
13     layout/reftests/w3c-css,
14     layout/style,
15     media/libdav1d/generate_source.py,
16     moz.configure,
17     netwerk/dns/prepare_tlds.py,
18     netwerk/protocol/http/make_incoming_tables.py,
19     python/devtools/migrate-l10n/migrate/main.py,
20     python/l10n/fluent_migrations,
21     python/mozbuild/mozbuild/fork_interpose.py,
22     security/manager/ssl/tests/unit,
23     servo/components/style,
24     testing/condprofile/condprof/android.py,
25     testing/condprofile/condprof/creator.py,
26     testing/condprofile/condprof/desktop.py,
27     testing/condprofile/condprof/runner.py,
28     testing/condprofile/condprof/scenarii/heavy.py,
29     testing/condprofile/condprof/scenarii/settled.py,
30     testing/condprofile/condprof/scenarii/synced.py
31     testing/condprofile/condprof/helpers.py,
32     testing/jsshell/benchmark.py,
33     testing/marionette/mach_commands.py,
34     testing/mozharness/docs,
35     testing/mozharness/examples,
36     testing/mozharness/external_tools,
37     testing/mozharness/mach_commands.py,
38     testing/mozharness/manifestparser,
39     testing/mozharness/mozprocess,
40     testing/mozharness/setup.py,
41     testing/parse_build_tests_ccov.py,
42     testing/runtimes/writeruntimes.py,
43     testing/tools/iceserver/iceserver.py,
44     testing/tools/websocketprocessbridge/websocketprocessbridge.py,
45     toolkit/components/featuregates,
46     toolkit/content/tests/chrome/file_about_networking_wsh.py,
47     toolkit/library/build/dependentlibs.py,
48     toolkit/locales/generate_update_locale.py,
49     toolkit/mozapps,
50     toolkit/moz.configure,
51     toolkit/nss.configure,
53     # These paths are intentionally excluded (not necessarily for good reason).
54     build/build-infer/build-infer.py,
55     build/moz.configure/*.configure,
56     build/pymake/,
57     browser/extensions/mortar/ppapi/,
58     browser/moz.configure,
59     dom/canvas/test/webgl-conf/checkout/closure-library/,
60     editor/libeditor/tests/browserscope/,
61     intl/icu/,
62     ipc/chromium/src/third_party/,
63     js/*.configure,
64     gfx/angle/,
65     gfx/harfbuzz,
66     gfx/skia/,
67     memory/moz.configure,
68     mobile/android/*.configure,
69     node_modules,
70     python/mozbuild/mozbuild/test/configure/data,
71     security/nss/,
72     testing/marionette/harness/marionette_harness/runner/mixins,
73     testing/marionette/harness/marionette_harness/tests,
74     testing/mochitest/pywebsocket3,
75     testing/mozharness/configs/test/test_malformed.py,
76     testing/web-platform/tests,
77     tools/lint/test/files,
78     tools/infer/test/*.configure,
79     tools/crashreporter/*.configure,
80     .ycm_extra_conf.py,
82     # This file uses py3.7 only syntax, so can't currently be checked by flake8 in-tree
83     tools/crashreporter/system-symbols/win/symsrv-fetch.py
85 # See:
86 #   - http://flake8.pycqa.org/en/latest/user/error-codes.html
87 #   - http://pep8.readthedocs.io/en/latest/intro.html#configuration
88 ignore =
89     # These should be triaged and either fixed or moved to the list below.
90     W504, W605, W606,
91     # These are intentionally disabled (not necessarily for good reason).
92     #   F723: syntax error in type comment
93     #       text contains quotes which breaks our custom JSON formatter
94     F723, E121, E123, E126, E129, E133, E226, E241, E242, E402, E704, E741, W503,
96     # black will generate code that breaks these. they're not PEP8 compliant though;
97     # see https://github.com/psf/black/blob/master/docs/compatible_configs.md#flake8
98     W503, E203
100 per-file-ignores =
101     # These paths are intentionally excluded.
102     ipc/ipdl/*: F403, F405
103     layout/tools/reftest/selftest/conftest.py: F811
104     # cpp_eclipse has a lot of multi-line embedded XML which exceeds line length
105     python/mozbuild/mozbuild/backend/cpp_eclipse.py: E501
106     testing/firefox-ui/**/__init__.py: F401
107     testing/marionette/**/__init__.py: F401
108     testing/mochitest/tests/python/conftest.py: F811
109     testing/mozbase/manifestparser/tests/test_filters.py: E731
110     testing/mozbase/mozlog/tests/test_formatters.py: E501
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