.flake8
author Andrew Halberstadt <ahalberstadt@mozilla.com>
Thu, 07 Feb 2019 20:16:45 +0000
changeset 518560 3c7c50fba28399ae0d1a3812e5088cde55aacd8e
parent 513555 daf50f25895db073e44d50fecf2e4f6fe873865d
child 518561 f96c1460ffc09ef61bf3e2c93bfda21cdb86fb2f
permissions -rw-r--r--
Bug 1515746 - [flake8] Upgrade flake8 and dependencies, r=egao This bumps flake8 to version 3.7.5. This also ignores the new lint rules that were added in the new versions. These rules are de-marked via comment so we know that they should be enabled at some point (as opposed to the other rules that are (presumably) ignored intentionally. Differential Revision: https://phabricator.services.mozilla.com/D18353

[flake8]
max-line-length = 99
exclude =
    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,
    glx/skia/,
    memory/moz.configure,
    mobile/android/*.configure,
    node_modules,
    security/nss/,
    testing/mochitest/pywebsocket,
    tools/lint/test/files,
    tools/infer/test/*.configure,
    tools/crashreporter/*.configure,

# 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,