gecko-dev/tools/lint/flake8.yml
Simon Fraser 1c95120d44 Bug 1468394 mach python-safety command for checking requirements files r=mtabara,tomprince
Added `./mach python-safety`, distinct from python-test so it doesn't have
to be run on every CI job - its errors may not depend on the area the push has changed.

Added the python/safety directory to ensure a different Pipfile is used, avoiding
conflicts with python-test.

Differential Revision: https://phabricator.services.mozilla.com/D1825

--HG--
extra : moz-landing-system : lando
2018-06-29 16:56:51 +00:00

60 lines
1.8 KiB
YAML

---
flake8:
description: Python linter
include:
- accessible/
- browser/
- build/
- config/
- configure.py
- js/
- memory/
- mobile/
- mozglue/
- layout/tools/reftest
- python/mach
- python/mach_commands.py
- python/mozboot
- python/mozbuild/mozpack/path.py
- python/mozlint
- python/mozterm
- python/mozversioncontrol
- python/safety
- security/
- 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/configs
- testing/mozharness/mozfile
- testing/mozharness/mozharness/mozilla/l10n/locales.py
- testing/mozharness/mozharness/mozilla/mar.py
- testing/mozharness/mozharness/mozilla/testing/
- testing/mozharness/mozinfo
- testing/mozharness/scripts
- testing/raptor
- testing/remotecppunittests.py
- testing/runcppunittests.py
- testing/talos/
- testing/xpcshell
- toolkit/components/telemetry
- toolkit/crashreporter/tools/upload_symbols.py
- tools/
- xpcom/
# 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']
support-files:
- '**/.flake8'
- 'tools/lint/python/flake8*'
type: external
payload: python.flake8:lint
setup: python.flake8:setup