2016-05-06 00:21:12 +03:00
|
|
|
[flake8]
|
|
|
|
max-line-length = 99
|
2017-08-30 00:32:31 +03:00
|
|
|
exclude =
|
2019-02-23 00:25:50 +03:00
|
|
|
# These paths should be triaged and either fixed or moved to the list below.
|
|
|
|
devtools/shared,
|
2022-12-17 13:00:00 +03:00
|
|
|
dom/bindings,
|
2019-09-24 17:46:38 +03:00
|
|
|
ipc/ipdl/ipdl,
|
2019-02-23 00:25:50 +03: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/l10n/fluent_migrations,
|
2019-09-24 17:46:38 +03:00
|
|
|
security/manager/ssl/tests/unit,
|
2019-02-23 00:25:50 +03:00
|
|
|
servo/components/style,
|
2019-09-16 22:44:35 +03: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 12:06:32 +03:00
|
|
|
testing/condprofile/condprof/scenarii/settled.py,
|
2020-02-24 02:17:23 +03:00
|
|
|
testing/condprofile/condprof/scenarii/synced.py
|
2019-09-18 18:16:57 +03:00
|
|
|
testing/condprofile/condprof/helpers.py,
|
2019-02-23 00:25:50 +03: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-17 00:44:10 +03:00
|
|
|
toolkit/library/build/dependentlibs.py,
|
2019-02-23 00:25:50 +03:00
|
|
|
toolkit/locales/generate_update_locale.py,
|
|
|
|
toolkit/mozapps,
|
|
|
|
toolkit/moz.configure,
|
|
|
|
toolkit/nss.configure,
|
|
|
|
|
2023-01-02 14:46:53 +03:00
|
|
|
# mako files are not really python files
|
|
|
|
*.mako.py,
|
|
|
|
|
2019-02-23 00:25:50 +03:00
|
|
|
# These paths are intentionally excluded (not necessarily for good reason).
|
2018-07-25 16:56:19 +03:00
|
|
|
build/moz.configure/*.configure,
|
2018-05-22 16:26:22 +03:00
|
|
|
build/pymake/,
|
2019-02-07 23:16:45 +03:00
|
|
|
browser/extensions/mortar/ppapi/,
|
|
|
|
browser/moz.configure,
|
2018-06-13 09:11:40 +03:00
|
|
|
dom/canvas/test/webgl-conf/checkout/closure-library/,
|
2018-06-10 15:13:44 +03:00
|
|
|
editor/libeditor/tests/browserscope/,
|
2018-06-13 09:11:40 +03:00
|
|
|
intl/icu/,
|
2018-11-21 06:11:37 +03:00
|
|
|
ipc/chromium/src/third_party/,
|
2019-02-07 23:16:45 +03:00
|
|
|
js/*.configure,
|
2018-06-10 15:13:44 +03:00
|
|
|
gfx/angle/,
|
|
|
|
gfx/harfbuzz,
|
2019-02-23 00:25:50 +03:00
|
|
|
gfx/skia/,
|
2018-07-06 15:39:39 +03:00
|
|
|
memory/moz.configure,
|
|
|
|
mobile/android/*.configure,
|
2018-06-06 20:32:43 +03:00
|
|
|
node_modules,
|
2019-05-28 17:21:43 +03:00
|
|
|
python/mozbuild/mozbuild/test/configure/data,
|
2018-05-28 21:58:54 +03:00
|
|
|
security/nss/,
|
2019-02-07 23:17:02 +03:00
|
|
|
testing/marionette/harness/marionette_harness/runner/mixins,
|
|
|
|
testing/marionette/harness/marionette_harness/tests,
|
2020-07-22 05:06:38 +03:00
|
|
|
testing/mochitest/pywebsocket3,
|
2019-02-07 23:17:02 +03:00
|
|
|
testing/mozharness/configs/test/test_malformed.py,
|
2020-09-29 17:22:49 +03:00
|
|
|
testing/web-platform/tests,
|
2018-03-23 00:24:15 +03:00
|
|
|
tools/lint/test/files,
|
2019-01-11 19:01:15 +03:00
|
|
|
tools/crashreporter/*.configure,
|
2019-02-23 00:25:50 +03:00
|
|
|
.ycm_extra_conf.py,
|
2019-02-07 23:16:45 +03: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.
|
2022-12-18 19:36:38 +03:00
|
|
|
W605, W606,
|
2019-02-07 23:16:45 +03: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
|
2022-12-18 19:36:38 +03:00
|
|
|
F723, E704, E741,
|
2019-02-07 23:17:02 +03:00
|
|
|
|
2022-12-18 19:36:38 +03:00
|
|
|
# black is already in charge of formatting, no need to start a formatter
|
|
|
|
# battle here
|
|
|
|
E1, W1, E2, W2, E3, W3, E4, W4, E5, W5
|
2020-07-09 01:08:08 +03:00
|
|
|
|
2019-02-07 23:17:02 +03:00
|
|
|
per-file-ignores =
|
2019-10-10 21:51:20 +03:00
|
|
|
# These paths are intentionally excluded.
|
2019-02-07 23:17:02 +03:00
|
|
|
ipc/ipdl/*: F403, F405
|
2019-10-10 21:51:20 +03:00
|
|
|
layout/tools/reftest/selftest/conftest.py: F811
|
2019-05-28 17:22:20 +03: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 17:37:55 +03:00
|
|
|
testing/firefox-ui/**/__init__.py: F401
|
|
|
|
testing/marionette/**/__init__.py: F401
|
2019-10-10 21:51:20 +03:00
|
|
|
testing/mochitest/tests/python/conftest.py: F811
|
2019-11-08 21:58:09 +03:00
|
|
|
testing/mozbase/manifestparser/tests/test_filters.py: E731
|
2020-10-21 21:23:19 +03:00
|
|
|
testing/mozbase/mozlog/tests/test_formatters.py: E501
|
2019-02-07 23:17:02 +03:00
|
|
|
testing/mozharness/configs/*: E124, E127, E128, E131, E231, E261, E265, E266, E501, W391
|
2019-09-24 17:46:38 +03:00
|
|
|
|
|
|
|
# These paths contain Python-2 only syntax which cause errors since flake8
|
|
|
|
# is run with Python 3.
|
2022-09-14 09:17:51 +03:00
|
|
|
build/compare-mozconfig/compare-mozconfigs.py: F821
|
|
|
|
build/midl.py: F821
|
|
|
|
build/pgo/genpgocert.py: F821
|
|
|
|
config/MozZipFile.py: F821
|
|
|
|
config/check_source_count.py: F821
|
|
|
|
config/tests/unitMozZipFile.py: F821
|
2019-10-10 21:50:52 +03:00
|
|
|
ipc/pull-chromium.py: F633
|
2022-09-14 09:17:51 +03:00
|
|
|
js/src/**: F633, F821
|
|
|
|
python/mozbuild/mozbuild/action/dump_env.py: F821
|
|
|
|
python/mozbuild/mozbuild/dotproperties.py: F821
|
|
|
|
python/mozbuild/mozbuild/testing.py: F821
|
|
|
|
python/mozbuild/mozbuild/util.py: F821
|
|
|
|
testing/mozharness/mozharness/mozilla/testing/android.py: F821
|
|
|
|
testing/mochitest/runtests.py: F821
|
2020-06-16 18:45:43 +03:00
|
|
|
|
|
|
|
builtins =
|
|
|
|
# For GDB extensions
|
|
|
|
gdb
|