Revision control

Other Tools

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/scenarii/synced.py
37
testing/condprofile/condprof/helpers.py,
38
testing/jsshell/benchmark.py,
39
testing/marionette/mach_commands.py,
40
testing/mozharness/docs,
41
testing/mozharness/examples,
42
testing/mozharness/external_tools,
43
testing/mozharness/mach_commands.py,
44
testing/mozharness/manifestparser,
45
testing/mozharness/mozprocess,
46
testing/mozharness/setup.py,
47
testing/parse_build_tests_ccov.py,
48
testing/runtimes/writeruntimes.py,
49
testing/tools/iceserver/iceserver.py,
50
testing/tools/view_gecko_profile/view_gecko_profile.py,
51
testing/tools/websocketprocessbridge/websocketprocessbridge.py,
52
testing/web-platform,
53
toolkit/components/featuregates,
54
toolkit/content/tests/chrome/file_about_networking_wsh.py,
55
toolkit/crashreporter/tools/symbolstore.py,
56
toolkit/crashreporter/tools/unit-symbolstore.py,
57
toolkit/library/build/dependentlibs.py,
58
toolkit/locales/generate_update_locale.py,
59
toolkit/mozapps,
60
toolkit/moz.configure,
61
toolkit/nss.configure,
62
63
# These paths are intentionally excluded (not necessarily for good reason).
64
build/build-infer/build-infer.py,
65
build/moz.configure/*.configure,
66
build/pymake/,
67
browser/extensions/mortar/ppapi/,
68
browser/moz.configure,
69
dom/canvas/test/webgl-conf/checkout/closure-library/,
70
editor/libeditor/tests/browserscope/,
71
intl/icu/,
72
ipc/chromium/src/third_party/,
73
js/*.configure,
74
gfx/angle/,
75
gfx/harfbuzz,
76
gfx/skia/,
77
memory/moz.configure,
78
mobile/android/*.configure,
79
node_modules,
80
python/mozbuild/mozbuild/test/configure/data,
81
security/nss/,
82
testing/marionette/harness/marionette_harness/runner/mixins,
83
testing/marionette/harness/marionette_harness/tests,
84
testing/mochitest/pywebsocket,
85
testing/mozharness/configs/test/test_malformed.py,
86
tools/lint/test/files,
87
tools/infer/test/*.configure,
88
tools/crashreporter/*.configure,
89
.ycm_extra_conf.py,
90
91
# This file uses py3.7 only syntax, so can't currently be checked by flake8 in-tree
92
tools/crashreporter/system-symbols/win/symsrv-fetch.py
93
94
# See:
97
ignore =
98
# These should be triaged and either fixed or moved to the list below.
99
W504, W605, W606,
100
# These are intentionally disabled (not necessarily for good reason).
101
# F723: syntax error in type comment
102
# text contains quotes which breaks our custom JSON formatter
103
F723, E121, E123, E126, E129, E133, E226, E241, E242, E402, E704, E741, W503,
104
105
per-file-ignores =
106
# These paths are intentionally excluded.
107
ipc/ipdl/*: F403, F405
108
layout/tools/reftest/selftest/conftest.py: F811
109
# cpp_eclipse has a lot of multi-line embedded XML which exceeds line length
110
python/mozbuild/mozbuild/backend/cpp_eclipse.py: E501
111
testing/firefox-ui/**/__init__.py: F401
112
testing/marionette/**/__init__.py: F401
113
testing/mochitest/tests/python/conftest.py: F811
114
testing/mozbase/manifestparser/tests/test_filters.py: E731
115
testing/mozharness/configs/*: E124, E127, E128, E131, E231, E261, E265, E266, E501, W391
116
117
# These paths contain Python-2 only syntax which cause errors since flake8
118
# is run with Python 3.
119
browser/app/macversion.py: F633
120
build/**: F633, F821
121
config/**: F633, F821
122
ipc/pull-chromium.py: F633
123
js/**: F633, F821
124
memory/**: F821
125
mozglue/**: F821
126
python/mozbuild/**: F821
127
python/mozversioncontrol/**: F821
128
testing/mozharness/**: F821
129
testing/talos/**: F821
130
toolkit/components/telemetry/**: F821
131
tools/tryselect/**: F821
132
testing/firefox-ui/tests/functional/safebrowsing/test_initial_download.py: F821
133
testing/gtest/rungtests.py: F633
134
testing/marionette/**: F821
135
testing/mochitest/**: F821
136
testing/xpcshell/**: F633, F821
137
xpcom/idl-parser/xpidl/**: F633, F821