50 Commits

Author SHA1 Message Date
Anthony Sottile
223f0d4dfb v0.6.0 2015-10-05 07:53:34 -07:00
Barry Steyn
dd73ffd02f Filtering of hooks for commit or push stages 2015-10-05 07:17:20 -07:00
Anthony Sottile
1dfcf10036 git grep -l tmpdir_factory | xargs sed -i 's/tmpdir_factory/tempdir_factory/g' 2015-10-01 10:24:54 -07:00
Anthony Sottile
66b1d39c6e Allow arbitrary bytes in output. Resolves #245 2015-07-23 12:59:13 -07:00
Dmitriy Kunitskiy
72b61a81f9 fix for issue 246 2015-07-20 17:25:08 -07:00
Anthony Sottile
53cc2a64c9 Allow unstaged config when running against files or all-files. Resolves #242 2015-06-15 11:25:58 -07:00
Lucas Cimon
3c02a24655 Fixing bug with local hooks that disappeared during autoupdate 2015-06-14 22:30:28 +02:00
Lucas Cimon
b575cb510c Fix #238 : pre-commit autoupdate fails with local hooks 2015-06-02 23:30:06 +02:00
Anthony Sottile
a97cb38b9a Handle when the hooks directory is not there on install. Resolves #234. 2015-05-23 20:02:42 -07:00
Anthony Sottile
7905594215 Don't UnicodeDecodeError on non-ascii not-found hooks. Resolves #207. 2015-05-22 21:55:08 -07:00
Anthony Sottile
a875231be3 Fixup 2015-05-10 17:00:23 -07:00
caffodian
1c28ae10f7 Fix for #157 (with upstream changes)
Conflicts:
	tests/commands/run_test.py
2015-05-10 16:25:05 -07:00
8geese
fdc2a889de fix for #157 2015-05-10 15:48:21 -07:00
Lucas Cimon
b68261c720 Adding support for locally-defined hooks 2015-05-10 23:57:34 +02:00
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
02f0a1c434 Actually print while installing 2015-02-22 16:18:46 -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
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
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
e1429ec250 Add regression test for running multiple hooks with the same id. 2014-08-01 06:50:51 -07:00
Anthony Sottile
b8c8120f2a Print hookid on failure. 2014-07-22 06:54:48 -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
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
8fee06b53e resource_filename instead of trying to remember the right invocation to pkg_resources. 2014-06-23 13:25:37 -07:00
Anthony Sottile
aae98a0899 make a few more tests pass on osx. 2014-06-23 09:32:48 -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
a984a02c84 Make ordereddict a direct dependency. 2014-06-17 06:59:13 -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
Anthony Sottile
8f3f5c364a Add test for failure condition. 2014-06-16 14:27:30 -07:00
Anthony Sottile
a744a6484e git mv pre_commit/resources/pre-commit.sh pre_commit/resources/pre-commit-hook 2014-06-16 13:07:54 -07:00
Anthony Sottile
39470c98ca Add expected behaviour for failure to find pre_commit. 2014-06-16 13:03:00 -07:00
Anthony Sottile
4b43fd8cdc Add integration test for existing install behaviour 2014-06-16 12:53:26 -07:00
Anthony Sottile
85a76617c1 Refactor fixtures in tests. 2014-06-15 18:49:45 -07:00
Anthony Sottile
3baefd57e2 Convert autoupdate_test to use new fixture functions. 2014-06-15 17:00:35 -07:00
Anthony Sottile
047a933554 Move empty_git_dir out of pytest fixtures. 2014-06-15 15:47:11 -07:00
Anthony Sottile
7b1230df27 Use plumbum a bit better. 2014-06-15 14:19:05 -07:00
Anthony Sottile
cdfd3f7670 Move commands into their own files. 2014-06-13 19:52:14 -07:00