Commit Graph

25 Commits

Author SHA1 Message Date
Anthony Sottile 10912fa03e Lazily install repositories 2017-10-20 13:04:33 -07:00
Anthony Sottile 2c88791a7f Add pre-commit try-repo
`try-repo` is useful for:
- Trying out a remote hook repository without needing to configure it.
- Testing a hook repository while developing it.
2017-10-07 18:03:52 -07:00
Anthony Sottile 898a3ea1bb Implement fail_fast. 2017-09-08 13:19:00 -07:00
Anthony Sottile 3e76cdaf25 Enable map configurations (config v2). 2017-09-06 10:01:08 -07:00
Anthony Sottile 6141c419ee Remove Runner.cmd_runner and Store.cmd_runner 2017-09-05 14:49:31 -07:00
Anthony Sottile cb8dd335f4 Replace jsonschema with better error messages 2017-03-08 14:07:00 -08:00
Jacob Scott f205e6d170 Incoroporate PR feedback
* Make config_file a required argument to Runner
* Update main.py
* Update tests to make them all green

New test to test alternate config functionality coming in next commit
2016-12-02 13:53:59 -08:00
Jacob Scott f1c00eefe4 Add option to run from alternate config file 2016-12-02 11:30:45 -08:00
Anthony Sottile a7169905dc Centralize logging initialization 2016-11-26 14:19:37 -08:00
Lucas Cimon 941149942d Making it possible to invoke pre-commit run --files some.file from a subdirectory of the repository 2016-02-07 12:25:51 -08:00
Anthony Sottile c3c98afe4f Support pre-commit from inside submodules 2015-12-18 15:35:44 -08:00
Anthony Sottile 931c69b3fa Simplify a few things 2015-01-14 19:26:38 -08:00
dongweiming b707cbba06 Make pre_commit also support pre-push hook 2015-01-14 19:26:37 -08:00
Anthony Sottile fd109b7745 reorder-python-imports 2015-01-04 15:49:19 -08:00
Anthony Sottile 31a3b2ecb6 Install hooks before attempting to run anything 2014-07-04 11:11:21 -07:00
Anthony Sottile 203c554734 Use cached-property package. 2014-06-17 06:49:54 -07:00
Anthony Sottile ac735e85e2 Make install -f / --overwrite work. 2014-06-16 17:41:16 -07:00
Anthony Sottile 85a76617c1 Refactor fixtures in tests. 2014-06-15 18:49:45 -07:00
Anthony Sottile 39c4ee6e96 Use asottile.cached_property. 2014-06-01 16:41:58 -07:00
Anthony Sottile 479eb51873 Implement Store. pre-commit now installs files to ~/.pre-commit 2014-05-02 14:56:47 -07:00
Anthony Sottile 1746a97e24 Better project structure 2014-04-12 15:56:18 -07:00
Anthony Sottile 216b5c6ab1 Resolves cwd problem 2014-03-29 23:23:43 -07:00
Anthony Sottile 6f0d566199 Added path function to PrefixedCommandRunner 2014-03-29 15:47:29 -07:00
Anthony Sottile ecdacd474b Simplify the install and uninstall commands and improve tests. 2014-03-23 18:33:18 -07:00
Anthony Sottile 88686d298f Add Runner interface. 2014-03-23 16:22:24 -07:00