Commit Graph

106 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
7d4787eced Increase coverage moar 2014-04-13 15:28:48 -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
366bc1d1cc Fix str() call 2014-04-12 23:46:03 -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
7a8dcb0ca9 Python 2.6 compatibility for LoggingHandler. Closes #66. 2014-04-07 17:04:21 -07:00
Anthony Sottile
460582dacd Fix node in no-node-case...again. 2014-04-07 11:41:11 -07:00
Anthony Sottile
514a6d66cf Remove incorrect todo comment. 2014-04-05 22:05:18 -07:00
Anthony Sottile
158a3a6d8b Pre-commit stashes unstaged changes on run. Closes #30. 2014-04-05 22:01:29 -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
8aa88c7363 Consolidate arguments for run() 2014-04-05 19:21:12 -07:00
Anthony Sottile
6a1f945e31 Add color utility. 2014-04-05 19:12:30 -07:00
Anthony Sottile
e98d2e1e79 Use print_function moar. 2014-04-05 18:58:11 -07:00
Anthony Sottile
7a8cfee9fe Add verbose mode for pre-commit 2014-04-03 23:45:27 -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
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
9a1799b9a8 DRY up validate_* 2014-04-03 20:51:37 -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
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
d4c9f9075e Fix node runner for running without a system-level node installed. 2014-03-24 11:17:38 -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
ecdacd474b Simplify the install and uninstall commands and improve tests. 2014-03-23 18:33:18 -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
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