Commit Graph

84 Commits

Author SHA1 Message Date
Anthony Sottile
de24712a6f Skip hooks if no files to check. Closes #69. 2014-04-13 17:39:58 -07:00
Anthony Sottile
6c940c5145 Simplify commands test. 2014-04-13 17:12:34 -07:00
Anthony Sottile
681ddf99b7 Fix Py3 2014-04-13 15:47:27 -07:00
Anthony Sottile
7d4787eced Increase coverage moar 2014-04-13 15:28:48 -07:00
Anthony Sottile
0fec434380 Improve coverage for validators. 2014-04-13 14:45:39 -07:00
Anthony Sottile
cd36e9e779 Fix Py3 2014-04-13 14:29:45 -07:00
Anthony Sottile
5eda121260 Move stuff into commands and write tests. 2014-04-13 14:07:52 -07:00
Anthony Sottile
bb365a6e68 Python 3 compatibility. 2014-04-12 23:46:03 -07:00
Anthony Sottile
e58d28aad3 yaml extensions and ordereddict are now imported from asottile. 2014-04-12 16:12:10 -07:00
Anthony Sottile
1746a97e24 Better project structure 2014-04-12 15:56:18 -07:00
Anthony Sottile
8b0a2abaf9 Add failing 2.6 test 2014-04-07 16:59:20 -07:00
Anthony Sottile
a3720c0645 Add logging handler. 2014-04-05 21:50:20 -07:00
Anthony Sottile
4ed9120ae9 Add staged_files_only context manager. 2014-04-05 19:35:35 -07:00
Anthony Sottile
73e0111e38 Wire in color for pre-commit. Closes #63. 2014-04-05 19:31:31 -07:00
Anthony Sottile
6a1f945e31 Add color utility. 2014-04-05 19:12:30 -07:00
Anthony Sottile
74363e6ec2 Print message when installing repositories. 2014-04-03 23:31:45 -07:00
Anthony Sottile
bcb00726a1 Clean up directories on failure. Closes #58. 2014-04-03 22:54:27 -07:00
Anthony Sottile
443b62d56a Add yaml hook. 2014-04-03 22:31:42 -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
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
c878e4d551 Remove defaulting behavior of validate_*. It was complicated and unnecessary 2014-03-31 21:26:06 -07:00
Anthony Sottile
fa953d4c2d Implement the clean command. 2014-03-30 18:34:57 -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
32d2807554 Fix prefixed_command_runner_test to not create real directories. 2014-03-30 14:01:07 -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
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
1238368f88 Fix python 2.6 2014-03-29 23:33:12 -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
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
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
Anthony Sottile
dc1494d0e7 Added fix end of file hook. 2014-03-22 21:49:10 -07:00
Anthony Sottile
04b421978a Make entry points simpler 2014-03-22 18:11:30 -07:00
Anthony Sottile
6d1a464c4f Use more-standard yaml format 2014-03-22 17:49:57 -07:00
Anthony Sottile
64745fb0b4 Merge pull request #37 from pre-commit/fix_lots_of_files
Fix lots of files problem
2014-03-22 16:59:34 -07:00
Anthony Sottile
f66b3f6156 Fixes lots of files problem. Closes #34 2014-03-22 16:54:50 -07:00
Anthony Sottile
6cda5bfe27 Clean up how the environments work. 2014-03-22 16:33:24 -07:00
Anthony Sottile
a1ba715b50 Modify a test to make sure arguments are getting passed correctly 2014-03-22 15:22:06 -07:00
Anthony Sottile
be8d1b811a Make the config validator more strict for correct regexes 2014-03-22 15:14:43 -07:00