gecko-dev/python
Andrew Halberstadt 18f9c226a5 Bug 1288425 - Make sure we skip invalid extensions when linting with --rev or --workdir, r=smacleod
Some linters, such as flake8, will lint invalid file extensions if you explicitly pass them in. E.g,
|flake8 foobar.js| will result in flake8 attempting to lint a JS file. This is a problem because passing
in files explicitly is exactly what the --rev/--workdir options do. If a developer modifies a JS file
then runs |mach lint -l flake8 -w|, that JS file will get linted.

To prevent this, mozlint needs to handle file extensions instead of relying on the underlying linter to
do it. This patch adds an "extensions" config option to the LINTER dict, and will filter these files out
as part of the 'filterpaths' steps.

MozReview-Commit-ID: KYhC6SEySC3

--HG--
extra : rebase_source : 46807a4913660f33e691b864c2c59c448902dfa5
2016-07-19 13:50:25 -04:00
..
altgraph Bug 1265272 - Import altgraph 0.12; r=ted,gerv 2016-04-21 13:49:29 -04:00
bitstring
blessings
compare-locales Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
configobj
eme Bug 1265272 - Update gen-eme-voucher.py to handle work on MacOSX binaries. r=ted 2016-04-21 11:10:27 -04:00
futures
gdbpp/gdbpp Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
jsmin
lldbutils Bug 1235261 - Part 4: Remove AutoFallibleTArray. r=froydnj 2016-02-02 17:36:30 +02:00
mach Bug 1100925 - Mach now detects msys2. r=gps 2016-05-31 14:44:53 -07:00
macholib Bug 1265272 - Import macholib 1.7; r=ted,gerv 2016-04-21 11:46:07 -04:00
mock-1.0.0
mozboot Bug 1287486 - Add libx11-xcb-dev to the list of required packages to build on Ubuntu, and sort the list. r=gps 2016-07-18 17:52:53 +02:00
mozbuild Bug 1268944 - Remove GeckoView packaging. r=chmanchester 2016-07-25 11:54:03 -07:00
mozlint Bug 1288425 - Make sure we skip invalid extensions when linting with --rev or --workdir, r=smacleod 2016-07-19 13:50:25 -04:00
mozversioncontrol/mozversioncontrol
psutil
pyasn1
pyasn1-modules
PyECC
pylru Bug 1100925 - Vendored pylru 1.0.9 into mozilla-central. r=gps 2016-07-13 14:22:01 -07:00
pystache
pyyaml
redo
requests Bug 1247994 - Upgrade vendored requests package to 2.9.1; r=mshal 2016-02-12 10:03:53 -08:00
rsa
slugid
virtualenv Bug 1100925 - Added modification for MinGW64 version of Python so it will have system modules. r=gps 2016-07-06 14:16:50 -07:00
voluptuous Bug 1281004: vendor voluptuous; r=gps 2016-06-29 20:39:02 +00:00
which
mach_commands.py Bug 1271734 - Move all eslint related infrastructure to tools/lint, r=miker 2016-06-02 15:38:36 -04:00
moz.build Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
README

This directory contains common Python code.

The basic rule is that if Python code is cross-module (that's "module" in the
Mozilla meaning - as in "module ownership") and is MPL-compatible, it should
go here.

What should not go here:

* Python that is not MPL-compatible (see other-licenses/)
* Python that has good reason to remain close to its "owning" (Mozilla)
  module (e.g. it is only being consumed from there).

Historical information can be found at
https://bugzilla.mozilla.org/show_bug.cgi?id=775243

## pyyaml | pystache

Used in taskcluster related mach commands to update download from github
and remove .git and tests.

Then run tests in taskcluster/tests/