.flake8
author Tab Atkins Jr <jackalmage@gmail.com>
Tue, 05 Mar 2019 12:17:42 +0000
changeset 464571 8b570896ed6855a3dd1aaa00f3038971a8e3e58d
parent 462307 8a14a69f725a823c03d38ca91c7029cae382a630
child 467682 85a8b43922d85adbb493a1956c223b29d84bdcf6
permissions -rw-r--r--
Bug 1529046 [wpt PR 15421] - CDC versus Ident Token, a=testonly Automatic update from web-platform-tests CDC versus Ident Token Tests <https://github.com/w3c/csswg-drafts/issues/3623>. If the CDC-vs-ident check is performed in the wrong order, you will attempt to parse the CDC as an ident instead, emitting a `--` ident token, and then a `>` delim token. Thus, if this test is parsed incorrectly, it'll instead think the selector is `-- > --foo`, a valid selector with two tagname selectors separated by a child combinator. -- lint: remove trailing whitespace -- Merge pull request #15421 from web-platform-tests/tabatkins-patch-2 CDC versus Ident Token -- wpt-commits: c79dbe6d777590620087aadbceb07668d3f2fd89, bf1be2ec37487a34adb4ac2ca75b7a061d27b8fe, 542f927a85e239ae514db33e73d4421f86b267ae wpt-pr: 15421

[flake8]
max-line-length = 99
exclude =
    # These paths should be triaged and either fixed or moved to the list below.
    client.py,
    devtools/shared,
    dom/base,
    dom/bindings,
    dom/browser-element,
    dom/canvas,
    dom/encoding,
    dom/imptests,
    dom/security,
    dom/websocket,
    embedding/ios/moz.configure,
    gfx/tests,
    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,
    python/mozbuild/dumbmake,
    python/mozbuild/mozbuild,
    servo/components/style,
    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/view_gecko_profile/view_gecko_profile.py,
    testing/tools/websocketprocessbridge/websocketprocessbridge.py,
    testing/web-platform,
    toolkit/components/featuregates,
    toolkit/content/tests/chrome/file_about_networking_wsh.py,
    toolkit/crashreporter/tools/symbolstore.py,
    toolkit/crashreporter/tools/unit-symbolstore.py,
    toolkit/library/dependentlibs.py,
    toolkit/locales/generate_update_locale.py,
    toolkit/mozapps,
    toolkit/moz.configure,
    toolkit/nss.configure,

    # These paths are intentionally excluded (not necessarily for good reason).
    build/build-infer/build-infer.py,
    build/moz.configure/*.configure,
    build/pymake/,
    browser/extensions/mortar/ppapi/,
    browser/moz.configure,
    dom/canvas/test/webgl-conf/checkout/closure-library/,
    editor/libeditor/tests/browserscope/,
    intl/icu/,
    ipc/chromium/src/third_party/,
    js/*.configure,
    gfx/angle/,
    gfx/harfbuzz,
    gfx/skia/,
    memory/moz.configure,
    mobile/android/*.configure,
    node_modules,
    security/nss/,
    testing/marionette/harness/marionette_harness/runner/mixins,
    testing/marionette/harness/marionette_harness/tests,
    testing/mochitest/pywebsocket,
    testing/mozharness/configs/test/test_malformed.py,
    tools/lint/test/files,
    tools/infer/test/*.configure,
    tools/crashreporter/*.configure,
    .ycm_extra_conf.py,

# 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.
    F632, F633, F811, E117, W504, W605, W606,
    # 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,

per-file-ignores =
    ipc/ipdl/*: F403, F405
    testing/firefox-ui/**/__init__.py: F401
    testing/marionette/**/__init__.py: F401
    testing/mozharness/configs/*: E124, E127, E128, E131, E231, E261, E265, E266, E501, W391