2016-05-05 21:21:12 +00:00
|
|
|
[flake8]
|
|
|
|
max-line-length = 99
|
2017-08-29 21:32:31 +00:00
|
|
|
exclude =
|
2019-02-22 21:25:50 +00:00
|
|
|
# These paths should be triaged and either fixed or moved to the list below.
|
|
|
|
devtools/shared,
|
|
|
|
dom/bindings,
|
|
|
|
gfx/tests,
|
2019-09-24 14:46:38 +00:00
|
|
|
ipc/ipdl/ipdl,
|
2019-02-22 21:25:50 +00:00
|
|
|
layout/base/tests/marionette,
|
|
|
|
layout/reftests/border-image,
|
|
|
|
layout/reftests/fonts,
|
|
|
|
layout/reftests/w3c-css,
|
|
|
|
layout/style,
|
|
|
|
media/libdav1d/generate_source.py,
|
|
|
|
moz.configure,
|
|
|
|
netwerk/dns/prepare_tlds.py,
|
|
|
|
netwerk/protocol/http/make_incoming_tables.py,
|
|
|
|
python/devtools/migrate-l10n/migrate/main.py,
|
|
|
|
python/l10n/fluent_migrations,
|
2020-10-29 15:47:14 +00:00
|
|
|
python/mozbuild/mozbuild/fork_interpose.py,
|
2019-09-24 14:46:38 +00:00
|
|
|
security/manager/ssl/tests/unit,
|
2019-02-22 21:25:50 +00:00
|
|
|
servo/components/style,
|
2019-09-16 19:44:35 +00:00
|
|
|
testing/condprofile/condprof/android.py,
|
|
|
|
testing/condprofile/condprof/creator.py,
|
|
|
|
testing/condprofile/condprof/desktop.py,
|
|
|
|
testing/condprofile/condprof/runner.py,
|
|
|
|
testing/condprofile/condprof/scenarii/heavy.py,
|
2019-11-26 09:06:32 +00:00
|
|
|
testing/condprofile/condprof/scenarii/settled.py,
|
2020-02-23 23:17:23 +00:00
|
|
|
testing/condprofile/condprof/scenarii/synced.py
|
2019-09-18 15:16:57 +00:00
|
|
|
testing/condprofile/condprof/helpers.py,
|
2019-02-22 21:25:50 +00:00
|
|
|
testing/jsshell/benchmark.py,
|
|
|
|
testing/marionette/mach_commands.py,
|
|
|
|
testing/mozharness/docs,
|
|
|
|
testing/mozharness/examples,
|
|
|
|
testing/mozharness/external_tools,
|
|
|
|
testing/mozharness/mach_commands.py,
|
|
|
|
testing/mozharness/manifestparser,
|
|
|
|
testing/mozharness/mozprocess,
|
|
|
|
testing/mozharness/setup.py,
|
|
|
|
testing/parse_build_tests_ccov.py,
|
|
|
|
testing/runtimes/writeruntimes.py,
|
|
|
|
testing/tools/iceserver/iceserver.py,
|
|
|
|
testing/tools/websocketprocessbridge/websocketprocessbridge.py,
|
|
|
|
toolkit/components/featuregates,
|
|
|
|
toolkit/content/tests/chrome/file_about_networking_wsh.py,
|
2019-08-16 21:44:10 +00:00
|
|
|
toolkit/library/build/dependentlibs.py,
|
2019-02-22 21:25:50 +00:00
|
|
|
toolkit/locales/generate_update_locale.py,
|
|
|
|
toolkit/mozapps,
|
|
|
|
toolkit/moz.configure,
|
|
|
|
toolkit/nss.configure,
|
|
|
|
|
|
|
|
# These paths are intentionally excluded (not necessarily for good reason).
|
2019-02-07 20:16:45 +00:00
|
|
|
build/build-infer/build-infer.py,
|
2018-07-25 13:56:19 +00:00
|
|
|
build/moz.configure/*.configure,
|
2018-05-22 13:26:22 +00:00
|
|
|
build/pymake/,
|
2019-02-07 20:16:45 +00:00
|
|
|
browser/extensions/mortar/ppapi/,
|
|
|
|
browser/moz.configure,
|
2018-06-13 06:11:40 +00:00
|
|
|
dom/canvas/test/webgl-conf/checkout/closure-library/,
|
2018-06-10 12:13:44 +00:00
|
|
|
editor/libeditor/tests/browserscope/,
|
2018-06-13 06:11:40 +00:00
|
|
|
intl/icu/,
|
2018-11-21 03:11:37 +00:00
|
|
|
ipc/chromium/src/third_party/,
|
2019-02-07 20:16:45 +00:00
|
|
|
js/*.configure,
|
2018-06-10 12:13:44 +00:00
|
|
|
gfx/angle/,
|
|
|
|
gfx/harfbuzz,
|
2019-02-22 21:25:50 +00:00
|
|
|
gfx/skia/,
|
2018-07-06 12:39:39 +00:00
|
|
|
memory/moz.configure,
|
|
|
|
mobile/android/*.configure,
|
2018-06-06 17:32:43 +00:00
|
|
|
node_modules,
|
2019-05-28 14:21:43 +00:00
|
|
|
python/mozbuild/mozbuild/test/configure/data,
|
2018-05-28 18:58:54 +00:00
|
|
|
security/nss/,
|
2019-02-07 20:17:02 +00:00
|
|
|
testing/marionette/harness/marionette_harness/runner/mixins,
|
|
|
|
testing/marionette/harness/marionette_harness/tests,
|
2020-07-22 02:06:38 +00:00
|
|
|
testing/mochitest/pywebsocket3,
|
2019-02-07 20:17:02 +00:00
|
|
|
testing/mozharness/configs/test/test_malformed.py,
|
2021-03-03 10:03:05 +00:00
|
|
|
testing/web-platform/mozilla/tests/tools/wptserve_py2,
|
2020-09-29 14:22:49 +00:00
|
|
|
testing/web-platform/tests,
|
2018-03-22 21:24:15 +00:00
|
|
|
tools/lint/test/files,
|
2019-02-07 20:16:45 +00:00
|
|
|
tools/infer/test/*.configure,
|
2019-01-11 16:01:15 +00:00
|
|
|
tools/crashreporter/*.configure,
|
2019-02-22 21:25:50 +00:00
|
|
|
.ycm_extra_conf.py,
|
2019-02-07 20:16:45 +00:00
|
|
|
|
2019-12-13 04:44:20 +00:00
|
|
|
# This file uses py3.7 only syntax, so can't currently be checked by flake8 in-tree
|
|
|
|
tools/crashreporter/system-symbols/win/symsrv-fetch.py
|
|
|
|
|
2019-02-07 20:16:45 +00:00
|
|
|
# See:
|
|
|
|
# - http://flake8.pycqa.org/en/latest/user/error-codes.html
|
|
|
|
# - http://pep8.readthedocs.io/en/latest/intro.html#configuration
|
|
|
|
ignore =
|
|
|
|
# These should be triaged and either fixed or moved to the list below.
|
2019-10-10 18:51:45 +00:00
|
|
|
W504, W605, W606,
|
2019-02-07 20:16:45 +00:00
|
|
|
# These are intentionally disabled (not necessarily for good reason).
|
|
|
|
# F723: syntax error in type comment
|
|
|
|
# text contains quotes which breaks our custom JSON formatter
|
|
|
|
F723, E121, E123, E126, E129, E133, E226, E241, E242, E402, E704, E741, W503,
|
2019-02-07 20:17:02 +00:00
|
|
|
|
2020-07-08 22:08:08 +00:00
|
|
|
# black will generate code that breaks these. they're not PEP8 compliant though;
|
|
|
|
# see https://github.com/psf/black/blob/master/docs/compatible_configs.md#flake8
|
|
|
|
W503, E203
|
|
|
|
|
2019-02-07 20:17:02 +00:00
|
|
|
per-file-ignores =
|
2019-10-10 18:51:20 +00:00
|
|
|
# These paths are intentionally excluded.
|
2019-02-07 20:17:02 +00:00
|
|
|
ipc/ipdl/*: F403, F405
|
2019-10-10 18:51:20 +00:00
|
|
|
layout/tools/reftest/selftest/conftest.py: F811
|
2019-05-28 14:22:20 +00:00
|
|
|
# cpp_eclipse has a lot of multi-line embedded XML which exceeds line length
|
|
|
|
python/mozbuild/mozbuild/backend/cpp_eclipse.py: E501
|
2019-02-22 14:37:55 +00:00
|
|
|
testing/firefox-ui/**/__init__.py: F401
|
|
|
|
testing/marionette/**/__init__.py: F401
|
2019-10-10 18:51:20 +00:00
|
|
|
testing/mochitest/tests/python/conftest.py: F811
|
2019-11-08 18:58:09 +00:00
|
|
|
testing/mozbase/manifestparser/tests/test_filters.py: E731
|
2020-10-21 18:23:19 +00:00
|
|
|
testing/mozbase/mozlog/tests/test_formatters.py: E501
|
2019-02-07 20:17:02 +00:00
|
|
|
testing/mozharness/configs/*: E124, E127, E128, E131, E231, E261, E265, E266, E501, W391
|
2019-09-24 14:46:38 +00:00
|
|
|
|
|
|
|
# These paths contain Python-2 only syntax which cause errors since flake8
|
|
|
|
# is run with Python 3.
|
2019-10-10 18:50:52 +00:00
|
|
|
browser/app/macversion.py: F633
|
|
|
|
build/**: F633, F821
|
|
|
|
config/**: F633, F821
|
|
|
|
ipc/pull-chromium.py: F633
|
|
|
|
js/**: F633, F821
|
2019-09-24 14:46:38 +00:00
|
|
|
memory/**: F821
|
|
|
|
mozglue/**: F821
|
|
|
|
python/mozbuild/**: F821
|
2020-06-20 12:21:27 +00:00
|
|
|
python/mozbuild/mozbuild/test/configure/test_checks_configure.py: E128
|
2019-09-24 14:46:38 +00:00
|
|
|
python/mozversioncontrol/**: F821
|
|
|
|
testing/mozharness/**: F821
|
|
|
|
testing/talos/**: F821
|
|
|
|
toolkit/components/telemetry/**: F821
|
|
|
|
testing/firefox-ui/tests/functional/safebrowsing/test_initial_download.py: F821
|
|
|
|
testing/mochitest/**: F821
|
2019-10-10 18:50:52 +00:00
|
|
|
xpcom/idl-parser/xpidl/**: F633, F821
|
2020-06-16 15:45:43 +00:00
|
|
|
|
|
|
|
builtins =
|
|
|
|
# For GDB extensions
|
|
|
|
gdb
|