Eklavya Sharma
7bd935bef2
Add option to only show extensionless files in lister.
2016-07-21 16:59:52 +05:30
Greg Price
436499a129
Clean up some relative-path handling in lister using Git magic
...
This lets us cut out the line which hard-codes how deeply nested in
the tree the `run-mypy` script is, making it simpler to borrow these
scripts in other projects.
2016-05-30 20:01:37 -07:00
Eklavya Sharma
bd63caed96
Fix exclude startegy in tools/lister.py.
...
Previously lister.py used to check whether the exclude path is a
substring of a path being considered. So it would fail when the
exclude path is an absolute path or uses '..' or '.'.
2016-05-24 13:24:15 -07:00
Eklavya Sharma
27f12b2de3
Annotate tools/lister.py.
2016-05-01 23:04:09 +05:30
Eklavya Sharma
2d3f9c8fb9
tools/lister.py: Use default arguments in add_argument.
...
Use the `default` parameter of ArgumentParser.add_argument
instead of manually setting default using the `x = x or []` pattern.
2016-05-01 07:01:52 +05:30
Eklavya Sharma
be0a4f349d
Apply Python 3 futurize transform libmodernize.fixes.fix_filter.
2016-04-05 13:22:51 -07:00
Tim Abbott
70c1b0a01d
lister: Add file type detection for node and ruby.
2016-04-01 15:27:32 -07:00
Eklavya Sharma
aead933c14
Add command-line interface to lister.py using argparse.
2016-04-01 15:27:32 -07:00
Eklavya Sharma
81fdeae0ea
Remove '.'s from extensions in lister.py interface and lint-all.
...
In lint-all, change occurences of '.py', '.js', ... to 'py', 'js', ....
2016-04-01 15:27:16 -07:00
Eklavya Sharma
ec8ae1f4c5
Add option to determine file type in lister.py using shebang.
2016-04-01 15:19:13 -07:00
Eklavya Sharma
5063f16f82
Add options for file type in lister.py
...
Add option to filter files by their extension.
Add option to return a dict of list of files keyed by their file type.
2016-04-01 15:19:13 -07:00
Eklavya Sharma
81aabb5831
Add option to exclude files from lister.py.
2016-04-01 15:19:13 -07:00
Eklavya Sharma
422fef2e24
Add argument modified_only to lister.py.
...
Add option of only showing modified files in tools/lister.py.
2016-04-01 15:19:13 -07:00
Eklavya Sharma
6954eb072c
Create lister.py.
...
Make module tools/lister.py which lists all files in a directory
tracked by git. This is done because lister.py will be used by other
scripts in the future which have to introspect files in the repository,
like linters, static code checkers, etc.
2016-04-01 15:19:13 -07:00