pre-commit/tests/commands
Zander Hill ff66c20c6e Fix types bug by using FrozenSet#intersection
Fixes a bug where files are not being recognized based on their `types`
using configuration file.

In the case of using `types: ['bash', 'sh', 'shell']` in
pre-commit-config, those filetypes will not be found, resulting in "no
files found" being reported with pre-commit. This persists even when
using --all-files flag.

Intersection produces predictable results in Python 2.7 and 3.x.
2018-05-03 12:19:57 +01:00
..
__init__.py Move commands into their own files. 2014-06-13 19:52:14 -07:00
autoupdate_test.py Restore git 1.8 support 2018-03-12 14:36:07 -07:00
clean_test.py Adhere to XDG specification for cache dir. 2017-09-06 10:00:35 -07:00
install_uninstall_test.py Restore git 1.8 support 2018-03-12 14:36:07 -07:00
migrate_config_test.py Migrate sha -> rev 2018-02-24 20:19:39 -08:00
run_test.py Fix types bug by using FrozenSet#intersection 2018-05-03 12:19:57 +01:00
sample_config_test.py Migrate sha -> rev 2018-02-24 20:19:39 -08:00
try_repo_test.py Fix regression: try-repo from relative path 2018-03-17 20:02:06 -07:00