Commit Graph

176 Commits

Author SHA1 Message Date
Anthony Sottile
badb41457a Care less about user installs during test. Resolves #221 2015-05-05 13:19:48 -07:00
Anthony Sottile
3bf852f46a Limit xargs line length. Resolves #205. 2015-02-27 15:15:42 -08:00
Anthony Sottile
143ed94500 Tests pass on windows 2015-02-27 00:48:01 -08:00
Anthony Sottile
56e5c4eb2d Use sqlite3 instead of symlinks for managing repositories 2015-02-22 17:42:40 -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
b7141f32c0 Add integration test demonstrating hooks 2015-01-14 20:19:49 -08:00
Anthony Sottile
931c69b3fa Simplify a few things 2015-01-14 19:26:38 -08:00
dongweiming
b707cbba06 Make pre_commit also support pre-push hook 2015-01-14 19:26:37 -08:00
Anthony Sottile
26502dfd0b Default arguments from hooks.yaml 2015-01-12 09:35:05 -08:00
Buck Golemon
7bd1dd977d improve output in error case 2015-01-06 16:25:46 -08:00
Anthony Sottile
fd109b7745 reorder-python-imports 2015-01-04 15:49:19 -08:00
Anthony Sottile
0479f78b4d Fix staged_files_only for color.diff always. Closes #176. 2014-10-07 17:40:20 -07:00
Anthony Sottile
bbd2572b11 Remove plumbum 2014-10-02 06:59:37 -07:00
Anthony Sottile
d8d7893cf7 Add ability to pass filenames as arguments. 2014-09-16 17:27:40 -07:00
Anthony Sottile
fa9db4ec23 Fix terminal width detection. 2014-09-05 14:08:10 -07:00
Anthony Sottile
598e54640b Use virtualenv python from install-time for less virtualenv requirements at commit time. 2014-09-04 10:19:20 -07:00
Anthony Sottile
ecf82ed5e0 Use bytes for sys.stdout.write in PY2. Closes #161. 2014-09-02 16:11:45 -07:00
Anthony Sottile
32817f3958 Remove @entry 2014-08-13 11:02:40 -07:00
Anthony Sottile
9a017dcbe9 Add error_handler and use it. 2014-08-13 11:02:28 -07:00
Anthony Sottile
e3d29a897b Make git errors throw FatalError 2014-08-13 10:43:32 -07:00
Anthony Sottile
e1429ec250 Add regression test for running multiple hooks with the same id. 2014-08-01 06:50:51 -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
b8c8120f2a Print hookid on failure. 2014-07-22 06:54:48 -07:00
Anthony Sottile
31a3b2ecb6 Install hooks before attempting to run anything 2014-07-04 11:11:21 -07:00
Anthony Sottile
76ffb3665a Merge pull request #135 from pre-commit/install_hooks
Support --install-hooks as an option for pre-commit install
2014-07-03 19:38:56 -07:00
Anthony Sottile
9259eb96bb Merge pull request #136 from pre-commit/test_command_line
Add tests for main.
2014-07-03 19:28:03 -07:00
Anthony Sottile
90648bc9ec Add tests for main. 2014-07-03 19:19:55 -07:00
Anthony Sottile
bdbf1cfdb1 Support --install-hooks as an option for pre-commit install 2014-07-03 17:22:32 -07:00
Anthony Sottile
e2d2c17218 Merge pull request #134 from pre-commit/osx_tests
Make more tests pass in osx
2014-06-26 20:14:26 -07:00
Anthony Sottile
76b42056ee More fixes for tests under osx 2014-06-26 20:00:48 -07:00
Anthony Sottile
bee56cd5bc Use our archives instead of pulling from gits. 2014-06-23 13:50:40 -07:00
Anthony Sottile
8fee06b53e resource_filename instead of trying to remember the right invocation to pkg_resources. 2014-06-23 13:25:37 -07:00
Anthony Sottile
a7133d6742 Add make archives scripts. 2014-06-23 13:04:47 -07:00
Anthony Sottile
aae98a0899 make a few more tests pass on osx. 2014-06-23 09:32:48 -07:00
Anthony Sottile
e40a151e8c Treat diffs as maybe-not-utf8. 2014-06-23 07:49:14 -07:00
Anthony Sottile
2ec7a34035 Fix filenames with spaces in them. 2014-06-20 10:20:02 -07:00
Anthony Sottile
5d1ffcba75 Hashlib doesn't take unicode. 2014-06-18 07:37:17 -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
f63fa850c9 Use less readlink for osx peeps. 2014-06-17 20:17:47 -07:00
Anthony Sottile
5e8a6414cd Use either pre-commit or python -m pre_commit.main. 2014-06-17 17:01:51 -07:00
Anthony Sottile
5575dbae05 Use aspy.yaml instead. 2014-06-17 09:29:39 -07:00
Anthony Sottile
a984a02c84 Make ordereddict a direct dependency. 2014-06-17 06:59:13 -07:00
Anthony Sottile
2cfd2818b5 Add pcre type. 2014-06-16 21:11:00 -07:00
Anthony Sottile
0cde0fdc48 Uninstall restores hooks. 2014-06-16 17:48:56 -07:00
Anthony Sottile
f4d16b9cdc Combine install and uninstall. 2014-06-16 17:45:13 -07:00
Anthony Sottile
ac735e85e2 Make install -f / --overwrite work. 2014-06-16 17:41:16 -07:00
Anthony Sottile
1d8394afd0 Add first pass at migration mode. 2014-06-16 15:31:22 -07:00