tools/lint/flake8.yml
author Gregory Szorc <gps@mozilla.com>
Tue, 07 Nov 2017 16:38:39 -0800
changeset 441455 b5f79b0f2a3586faf692c715b443264478e921c3
parent 440016 d73882d92a97e1f7071941e7586859746d344298
child 446833 0e6a5c7f8c7190816ad67f50101ab77e913eb878
permissions -rw-r--r--
Bug 1412932 - Switch to PGO build in Makefile.in; r=ted Previously, client.mk made the decision of whether to perform a PGO build. This required passing around MOZ_PGO and invoking a separate make target if this variable was set. In this commit, we move this logic to Makefile.in. We employ a special mechanism in rules.mk to override the default make target so `make` evaluates "profiledbuild" if MOZ_PGO is set. This also required using an explicit target for $(MAKE) invocations inside the "profiledbuild" rule to avoid infinite recursion. MozReview-Commit-ID: 8sHiVspMisM

---
flake8:
    description: Python linter
    include:
        - build/moz.configure/*.configure
        - build/*.py
        - configure.py
        - config/check_macroassembler_style.py
        - config/mozunit.py
        - layout/tools/reftest
        - python/mach
        - python/mach_commands.py
        - python/mozboot
        - python/mozlint
        - python/mozversioncontrol
        - security/manager
        - taskcluster
        - testing/firefox-ui
        - testing/mach_commands.py
        - testing/marionette/client
        - testing/marionette/harness
        - testing/marionette/puppeteer
        - testing/mochitest
        - testing/mozbase
        - testing/mozharness/mozfile
        - testing/mozharness/mozinfo
        - testing/mozharness/scripts
        - testing/remotecppunittests.py
        - testing/runcppunittests.py
        - testing/talos/
        - testing/xpcshell
        - tools/git
        - tools/lint
        - tools/mach_commands.py
        - tools/mercurial
        - tools/tryselect
        - toolkit/components/telemetry
    # Excludes should be added to topsrcdir/.flake8 due to a bug in flake8 where
    # specifying --exclude causes custom configuration files to be ignored.
    exclude: []
    # The configure option is used by the build system
    extensions: ['configure', 'py']
    type: external
    payload: python.flake8:lint