gecko-dev/tools/lint
Andrew Halberstadt eced3471fc Bug 1436639 - [lint] Make sure flake8 is run with same python as |mach lint| was, r=jmaher
This fixes a bug which can happen when the default version of python differs from
the version of python used with mach.

For example, mach explicitly looks for python2.7. This means running |mach lint -l flake8|
should also run flake8 with version 2.7. But if the default is python3, and flake8 is also
installed there, the subprocess call that invokes flake8 will run under python3. This can
lead to errors like "undefined name 'basestring'" and other 2to3 gotchas.

This patch ensures that we run:
python2.7 -m flake8

which explicitly runs flake8 against the same interpreter as mach, no matter the default.

MozReview-Commit-ID: HSuMzDsAvsW

--HG--
extra : rebase_source : d39f97ed0f82f4d2c81f044ef1f7dad0953a3d8d
2018-02-07 23:28:33 -05:00
..
docs Bug 1230369 - Add ESLint rules to disallow defining Cc/Ci etc and to prefer the use of Cc/Ci rather than the Components.* equivalents. r=florian 2018-02-06 22:40:12 +00:00
eslint Bug 1436389 - Update complexity rules to adapt for the algorithm in the new ESLint. r=mossop 2018-02-07 16:16:09 +00:00
python Bug 1436639 - [lint] Make sure flake8 is run with same python as |mach lint| was, r=jmaher 2018-02-07 23:28:33 -05:00
shell Bug 1432627 Add shellcheck linter to CI r=ahal 2018-01-29 15:27:04 +00:00
spell Bug 1433410 - Add codespell support for mach lint r=ahal 2018-01-27 10:35:31 +01:00
tox Bug 1302773 - Install tox in docker image in MozReview; r=dustin 2017-05-13 02:31:37 +05:30
wpt Bug 1428585 - Fixup flake8 error, r=me ON A CLOSED TREE 2018-01-09 15:47:06 +00:00
yamllint_ Bug 1395126 - Support cascading configuration for flake8, r=bc 2017-08-29 17:32:31 -04:00
codespell.yml Bug 1433912 - [lint] Only run codespell linter on python/mozlint and tools/lint for now, r=sylvestre 2018-01-29 10:25:54 -05:00
eslint.yml Bug 1429457 - [mozlint] Create formal 'setup' mechanism for bootstrapping lint dependencies, r=gbrown 2018-01-25 13:40:02 -05:00
flake8.yml Bug 1429457 - [mozlint] Create formal 'setup' mechanism for bootstrapping lint dependencies, r=gbrown 2018-01-25 13:40:02 -05:00
hooks.py Bug 1386351 - Let the Lint hook default to pre-push (for git) if being called directly. r=glandium 2017-11-23 09:09:33 +00:00
mach_commands.py Bug 1384273 - Get lint root dir from mach; r=ahal 2017-07-22 01:28:34 -06:00
py2.yml Bug 1407763 - Enable py2 and py3 compat linters for testing/marionette. r=ahal 2018-01-17 16:14:43 +01:00
py3.yml Bug 1407763 - Enable py2 and py3 compat linters for testing/marionette. r=ahal 2018-01-17 16:14:43 +01:00
shellcheck.yml Bug 1432627 Add shellcheck linter to CI r=ahal 2018-01-29 15:27:04 +00:00
test-disable.yml Bug 1392787 - Add a linter to prevent comment-disabling tests in manifestparser manifests, r=jmaher 2017-08-23 09:33:18 -04:00
wpt.yml Bug 1387862 - Lint the linter config yaml files themselves. r=ahal 2017-08-06 13:47:03 -04:00
wpt_manifest.yml Bug 1387862 - Lint the linter config yaml files themselves. r=ahal 2017-08-06 13:47:03 -04:00
yaml.yml Bug 1387862 - Lint the linter config yaml files themselves. r=ahal 2017-08-06 13:47:03 -04:00