Commit Graph

63 Commits

Author SHA1 Message Date
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
Anthony Sottile
afed660077 Add failing test for too many files 2014-03-22 14:57:22 -07:00
Anthony Sottile
6188903ed7 Make the pre-commit actually executable. Closes #32 2014-03-18 21:40:08 -07:00
Anthony Sottile
bef4a01af9 Don't pass deleted files to pre-commit scripts. 2014-03-16 19:22:38 -07:00
Anthony Sottile
6649e180bb Adds some tests for get_files_matching 2014-03-16 19:11:33 -07:00
Ken Struys
1a9ace859a added tests for node 2014-03-14 11:25:23 -07:00
Anthony Sottile
da8c435e9c Improve performance on pre-commit -r pyflakes by 40% 2014-03-13 23:48:17 -07:00
Anthony Sottile
f178906400 Fix python 2.6 2014-03-13 22:34:04 -07:00
Anthony Sottile
871ab4d72f OMG we're running a hook 2014-03-13 22:12:33 -07:00
Anthony Sottile
47bad120e4 Made env generation polymorphic 2014-03-13 20:48:00 -07:00
Anthony Sottile
5ca8f4ffa8 Repository now parses languages and manifests 2014-03-13 20:33:42 -07:00
Anthony Sottile
d77d01cd22 Rename RepoInstaller to Repository 2014-03-13 19:38:52 -07:00
Anthony Sottile
abea886a3d Refactored how the installer works 2014-03-13 19:36:44 -07:00
Anthony Sottile
8b0247e17f Move the installer thing 2014-03-13 19:01:15 -07:00
Ken Struys
95d9e29996 added config validation to install tests 2014-03-13 18:53:58 -07:00
Anthony Sottile
af5e47e042 Merge remote-tracking branch 'origin/master' 2014-03-13 17:49:41 -07:00
Ken Struys
6cf21ec533 fixing build 2014-03-13 17:47:46 -07:00
Anthony Sottile
2ebba7994d Added config validator and tests for it 2014-03-13 17:34:24 -07:00
Ken Struys
1d8af9ce50 moved the installing code to its own package 2014-03-13 17:31:58 -07:00
Ken Struys
320bb0a679 hopefully unbreaking the build 2014-03-13 17:06:23 -07:00
Ken Struys
3b0f03d0e0 Merge branch 'master' of github.com:pre-commit/pre-commit
Conflicts:
	tests/git_test.py
2014-03-13 16:48:02 -07:00
Ken Struys
6498321e1e added more integration with git repo creation 2014-03-13 16:29:59 -07:00