Commit Graph

51 Commits

Author SHA1 Message Date
Lucas Cimon
b68261c720 Adding support for locally-defined hooks 2015-05-10 23:57:34 +02:00
Anthony Sottile
143ed94500 Tests pass on windows 2015-02-27 00:48:01 -08:00
Anthony Sottile
02f0a1c434 Actually print while installing 2015-02-22 16:18:46 -08:00
Anthony Sottile
1996a4c8a1 Make ^C^C during install not cause subsequent runs to fail. Resolves #186. 2015-02-07 15:43:58 -08:00
Anthony Sottile
f4d251fbbe Quote args in venv'd languages 2015-02-04 19:01:56 -08:00
Anthony Sottile
26502dfd0b Default arguments from hooks.yaml 2015-01-12 09:35:05 -08:00
Anthony Sottile
fd109b7745 reorder-python-imports 2015-01-04 15:49:19 -08:00
Anthony Sottile
bbd2572b11 Remove plumbum 2014-10-02 06:59:37 -07:00
Anthony Sottile
62f13aea56 Allow multiple hooks with same id in .pre-commit-config.yaml 2014-07-31 08:37:37 -07:00
Anthony Sottile
76b42056ee More fixes for tests under osx 2014-06-26 20:00:48 -07:00
Anthony Sottile
aae98a0899 make a few more tests pass on osx. 2014-06-23 09:32:48 -07:00
Anthony Sottile
2ec7a34035 Fix filenames with spaces in them. 2014-06-20 10:20:02 -07:00
Anthony Sottile
4ec877628d Use hash of repository name to allow tags. 2014-06-18 07:37:16 -07:00
Anthony Sottile
d2a349a0d8 Add failing test for tags. 2014-06-18 07:36:43 -07:00
Anthony Sottile
2cfd2818b5 Add pcre type. 2014-06-16 21:11:00 -07:00
Anthony Sottile
85a76617c1 Refactor fixtures in tests. 2014-06-15 18:49:45 -07:00
Anthony Sottile
7b1230df27 Use plumbum a bit better. 2014-06-15 14:19:05 -07:00
Anthony Sottile
07664a80ca Attempt ruby-download before ruby-build. 2014-06-07 14:25:44 -07:00
Anthony Sottile
96174deac6 Make hooks specify files. Optionally allow config to override manifest. 2014-06-05 18:39:34 -07:00
Anthony Sottile
02a79bf1c3 Support language_version for ruby as well. 2014-06-03 13:28:20 -07:00
Anthony Sottile
511de4fe32 Support hooks with custom node version. 2014-06-02 16:10:59 -07:00
Anthony Sottile
4b98b39cea language_version works for python. 2014-06-02 07:26:44 -07:00
Anthony Sottile
a7ab9b2a28 Pass language_version to the install method for each language. 2014-06-02 06:57:07 -07:00
Anthony Sottile
fdd6989ece Add failing test for versioned repositories. 2014-06-02 06:39:46 -07:00
Anthony Sottile
61606cfaa4 Allow spaces in system hooks. Closes #95. 2014-05-18 14:20:11 -07:00
Anthony Sottile
b381bb68b7 Support ruby through a combination of rbenv, ruby-build, and GEM_HOME 2014-05-03 23:32:18 -07:00
Anthony Sottile
c5cbd473c7 Simplify Repository.cmd_runner 2014-05-02 22:47:23 -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
26af2cecab Add failing test for #90. 2014-04-20 00:17:32 -04:00
Anthony Sottile
94d626691f Move get_head_sha into testing since it is only used by tests. 2014-04-14 09:57:38 -07:00
Anthony Sottile
cd36e9e779 Fix Py3 2014-04-13 14:29:45 -07:00
Anthony Sottile
bb365a6e68 Python 3 compatibility. 2014-04-12 23:46:03 -07:00
Anthony Sottile
1746a97e24 Better project structure 2014-04-12 15:56:18 -07:00
Anthony Sottile
a3720c0645 Add logging handler. 2014-04-05 21:50:20 -07:00
Anthony Sottile
74363e6ec2 Print message when installing repositories. 2014-04-03 23:31:45 -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
c418f2b94e Implement no-dependency system and script hook types. Closes #39. 2014-03-30 15:15:13 -07:00
Anthony Sottile
53317adb1e Forgot to remove a herpderp 2014-03-29 23:47:04 -07:00
Anthony Sottile
216b5c6ab1 Resolves cwd problem 2014-03-29 23:23:43 -07:00
Anthony Sottile
aa9c77abe8 Adds failing test for cwd problem. 2014-03-29 13:00:29 -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
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
afed660077 Add failing test for too many files 2014-03-22 14:57:22 -07:00
Ken Struys
1a9ace859a added tests for node 2014-03-14 11:25:23 -07:00
Anthony Sottile
871ab4d72f OMG we're running a hook 2014-03-13 22:12:33 -07:00
Anthony Sottile
5ca8f4ffa8 Repository now parses languages and manifests 2014-03-13 20:33:42 -07:00