gecko-dev/python
Andrew Halberstadt ed73940aa9 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 : 6fea2942b2db1bea7deca1d6738546362b6ebd65
2016-08-09 16:24:04 -04:00
..
PyECC bug 1190603 - import PyECC library r=gps,gerv 2015-08-03 15:17:00 -07:00
altgraph Bug 1265272 - Import altgraph 0.12; r=ted,gerv 2016-04-21 13:49:29 -04:00
bitstring
blessings
compare-locales Bug 1284887 - Replaced references to mxr.mozilla.org in the codebase with dxr.mozilla.org r=dolske 2016-08-15 17:28:05 -07: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 1294633 - Implement gdb pretty-printer for mozilla::LinkedList, recognize StaticAutoPtr/StaticRefPtr in smartptr.py. r=tromey 2016-08-12 14:39:02 -04: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 1292715 - Added installer source code for MSYS2 and ConEmu. r=gps 2016-08-10 15:30:07 -07:00
mozbuild Bug 1290201 - Don't clobber .mozbuild directory by default; r=ted 2016-08-19 11:11:48 -07:00
mozlint Bug 1288425 - Make sure we skip invalid extensions when linting with --rev or --workdir, r=smacleod 2016-08-09 16:24:04 -04:00
mozversioncontrol/mozversioncontrol Bug 1225599 - Pull Mercurial repos with common 3rd party extensions disabled; r=dminor 2015-12-15 10:47:33 -08:00
psutil Bug 1196253 - update in-tree psutil to 3.1.1. r=gps 2015-08-20 08:03:31 -04:00
py Bug 1253359 - Vendor in Pytest 2.9.2 and Py 1.4.31 r=gps 2016-08-10 13:34:59 +02:00
pyasn1
pyasn1-modules
pylru Bug 1100925 - Vendored pylru 1.0.9 into mozilla-central. r=gps 2016-07-13 14:22:01 -07:00
pystache
pytest Bug 1253359 - Vendor in Pytest 2.9.2 and Py 1.4.31 r=gps 2016-08-10 13:34:59 +02:00
pytoml Bug 1231764 - part 4 - add pytoml to the virtualenv; r=chmanchester 2016-08-06 00:49:26 -04:00
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 Bug 1194767 - use slugid 1.0.6 in ./mach taskcluster-graph command. r=wcosta 2015-09-04 17:59:34 +02:00
virtualenv Bug 1295439 - Upgrade setuptools to 25.2.0; r=glandium 2016-08-16 08:46:57 -07:00
voluptuous Bug 1281004: vendor voluptuous; r=gps 2016-06-29 20:39:02 +00:00
which
README
mach_commands.py Bug 1253359 - Use vendored Pytest in `python-test` and Mn harness tests r=gps 2016-08-05 20:10:09 +02:00
moz.build Bug 1292463 - Rename compilechecks.configure and test_header_checks.py. r=chmanchester 2016-08-10 10:49:59 +09: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/