pre-commit/tests/commands
Anthony Sottile b1389603e0 Speed up filename filtering.
Before there was a `getcwd` syscall for every filename which was filtered.

Instead this is now cached per-run.

- When all files are identified by filename only: ~45% improvement
- When no files are identified by filename only: ~55% improvement

This makes little difference to overall execution, the bigger win is
eliminating the `memoize_by_cwd` hack.  Just removing the memoization would
have *increased* the runtime by 300-500%.
2019-01-23 20:48:41 -08:00
..
__init__.py Move commands into their own files. 2014-06-13 19:52:14 -07:00
autoupdate_test.py small cleanups in tests 2019-01-06 12:08:52 -08:00
clean_test.py pre-commit gc 2019-01-02 19:07:23 -08:00
gc_test.py Implement default_language_version 2019-01-05 13:15:23 -08:00
install_uninstall_test.py Be more timid about choosing a shebang 2019-01-10 14:26:55 -08:00
migrate_config_test.py small cleanups in tests 2019-01-06 12:08:52 -08:00
run_test.py Speed up filename filtering. 2019-01-23 20:48:41 -08:00
sample_config_test.py Upgrade the sample config 2018-11-15 14:17:10 -08:00
try_repo_test.py Teach pre-commit try-repo to clone uncommitted changes 2019-01-01 15:01:36 -08:00