Commit Graph

138 Commits

Author SHA1 Message Date
Anthony Sottile
443b62d56a Add yaml hook. 2014-04-03 22:31:42 -07:00
Anthony Sottile
3cfc49b522 Merge pull request #59 from pre-commit/fix_update_adding_defaults
Fix autoupdate spamming with defaults.
2014-04-03 22:14:22 -07:00
Anthony Sottile
8b5c3b8745 Fix autoupdate spamming with defaults. 2014-04-03 22:11:53 -07:00
Anthony Sottile
817ec510c7 Deepcopy defaults to prevent weird references in yaml. 2014-04-03 21:53:31 -07:00
Anthony Sottile
5a7044edcc Merge pull request #57 from pre-commit/dry_validate
Dry validate
2014-04-03 21:03:00 -07:00
Anthony Sottile
d5e920b370 Fuck you ipython 2014-04-03 20:59:37 -07:00
Anthony Sottile
9a1799b9a8 DRY up validate_* 2014-04-03 20:51:37 -07:00
Anthony Sottile
9ce6cc6c05 Merge pull request #56 from pre-commit/exclude_pattern
Exclude pattern
2014-03-31 23:38:10 -07:00
Anthony Sottile
535be5b33a Actually use the exclude pattern. Closes #47. 2014-03-31 23:35:25 -07:00
Anthony Sottile
ac67af21ec Apply defaults to all of the configs. Much fewer .get()s 2014-03-31 23:22:13 -07:00
Anthony Sottile
b23ad5d6a3 Add jsonschema extension to populate defaults. 2014-03-31 22:49:24 -07:00
Anthony Sottile
5f4996645c Allow exclude pattern to be parsed. 2014-03-31 21:43:26 -07:00
Anthony Sottile
770e48a8f7 Merge pull request #54 from pre-commit/remove_validator_defaulting
Remove defaulting behavior of validate_*.  It was complicated and unnecessary
2014-03-31 21:29:01 -07:00
Anthony Sottile
c878e4d551 Remove defaulting behavior of validate_*. It was complicated and unnecessary 2014-03-31 21:26:06 -07:00
Anthony Sottile
b83b040ca4 Merge pull request #53 from pre-commit/pre_commit_clean
Implement the clean command.
2014-03-30 18:47:01 -07:00
Anthony Sottile
fa953d4c2d Implement the clean command. 2014-03-30 18:34:57 -07:00
Anthony Sottile
88dd5e46d5 Merge pull request #52 from pre-commit/no_deps_hook_types
Implement no-dependency system and script hook types.  Closes #39.
2014-03-30 15:23:51 -07:00
Anthony Sottile
c418f2b94e Implement no-dependency system and script hook types. Closes #39. 2014-03-30 15:15:13 -07:00
Anthony Sottile
02660f7c0a Merge pull request #51 from pre-commit/fix_leaky_prefixed_command_runner_test
Fix prefixed_command_runner_test to not create real directories.
2014-03-30 14:05:01 -07:00
Anthony Sottile
32d2807554 Fix prefixed_command_runner_test to not create real directories. 2014-03-30 14:01:07 -07:00
Anthony Sottile
288d32d226 Fix build 2014-03-30 13:32:45 -07:00
Anthony Sottile
a116a3fe37 Merge pull request #49 from pre-commit/fix_cwd_problem
Fix cwd problem
2014-03-30 13:29:18 -07:00
Anthony Sottile
45e6a0b1eb Merge pull request #50 from pre-commit/manifest_to_hooks
Manifest to hooks
2014-03-30 13:21:42 -07:00
Anthony Sottile
7baf3035c8 Moar manifest -> hooks 2014-03-30 13:17:40 -07:00
Anthony Sottile
c62c1a3b51 manifest -> hooks 2014-03-30 13:12:40 -07:00
Anthony Sottile
53317adb1e Forgot to remove a herpderp 2014-03-29 23:47:04 -07:00
Anthony Sottile
75fc3a3481 No more abspath 2014-03-29 23:34:14 -07:00
Anthony Sottile
1238368f88 Fix python 2.6 2014-03-29 23:33:12 -07:00
Anthony Sottile
18249bec8a Simplify installing into virtualenv 2014-03-29 23:27:26 -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
bd6e62e28d Add PrefixedCommandRunner 2014-03-29 15:17:01 -07:00
Anthony Sottile
aa9c77abe8 Adds failing test for cwd problem. 2014-03-29 13:00:29 -07:00
Anthony Sottile
d4c9f9075e Fix node runner for running without a system-level node installed. 2014-03-24 11:17:38 -07:00
Anthony Sottile
c300a11a97 Merge pull request #46 from pre-commit/autoupdate_command_44
Autoupdate command
2014-03-23 23:05:27 -07:00
Anthony Sottile
2127945b6a Autoupdate pre-commit config. 2014-03-23 22:59:43 -07:00
Anthony Sottile
26d563ee20 Autoupdate works. Closes #44. 2014-03-23 22:57:19 -07:00
Anthony Sottile
49da1ba72a Added the useful thinking bit of the autoupdate and tests. 2014-03-23 21:35:35 -07:00
Anthony Sottile
d8f8f5e1f4 Extend validate_base to take a load_strategy 2014-03-23 20:22:51 -07:00
Anthony Sottile
2699026908 Add ordered yaml load/dump 2014-03-23 20:22:51 -07:00
Anthony Sottile
c695ee9a9a Move printing inside the commands for install and uninstall 2014-03-23 20:21:59 -07:00
Anthony Sottile
2f1454bebc Merge pull request #45 from pre-commit/simplify_commands
Simplify the install and uninstall commands and improve tests.
2014-03-23 18:42:39 -07:00
Anthony Sottile
ecdacd474b Simplify the install and uninstall commands and improve tests. 2014-03-23 18:33:18 -07:00
Anthony Sottile
48bbc68b35 Merge pull request #43 from pre-commit/command_arguments_42
pre-commit now uses sub-commands instead of options.  Closes #42.
2014-03-23 17:23:46 -07:00
Anthony Sottile
1dccbf3ea8 pre-commit now uses sub-commands instead of options. Closes #42. 2014-03-23 17:20:56 -07:00
Anthony Sottile
bee6b0fb27 Merge pull request #41 from pre-commit/pre_commit_runner
Add Runner interface.
2014-03-23 16:35:38 -07:00
Anthony Sottile
88686d298f Add Runner interface. 2014-03-23 16:22:24 -07:00
Anthony Sottile
ae1d1681b2 Fix the build in python 2.6: speeling error 2014-03-23 12:38:32 -07:00
Anthony Sottile
254655e2fd Add OrderedDict dependency. Make sure hooks are run in a deterministic order 2014-03-23 12:35:29 -07:00
Anthony Sottile
dc1494d0e7 Added fix end of file hook. 2014-03-22 21:49:10 -07:00