Anthony Sottile
173ce83484
Make hook-tmpl resilient to future changes
2017-02-22 08:48:36 -08:00
Anthony Sottile
f238495d6b
Add an install-hooks command (similar to install --install-hooks). Resolves #456
2017-01-04 07:52:16 -08:00
Anthony Sottile
0e2c3c1ff9
Merge pull request #441 from alzeih/patch-1
...
Fix test error "fatal: empty ident name (for <(null)>) not allowed"
2016-12-03 16:47:11 -08:00
alzeih
bdcbdc2e37
Fix test error "fatal: empty ident name (for <(null)>) not allowed"
...
Occurs when tests run with tox not with Travis CI or Appveyor
Changed existing tox setenv statement to use whitespace around `=` as per
http://tox.readthedocs.io/en/latest/example/basic.html#setting-environment-variables
2016-12-04 13:33:41 +13:00
Jacob Scott
f205e6d170
Incoroporate PR feedback
...
* Make config_file a required argument to Runner
* Update main.py
* Update tests to make them all green
New test to test alternate config functionality coming in next commit
2016-12-02 13:53:59 -08:00
Anthony Sottile
a7169905dc
Centralize logging initialization
2016-11-26 14:19:37 -08:00
Anthony Sottile
82369fd99f
Add utility for parsing shebangs and resolving PATH
2016-04-03 22:54:46 -07:00
Anthony Sottile
57638134e3
Make a helper for running pre-commit as a subprocess under test
2016-02-07 13:03:59 -08:00
Anthony Sottile
495fefd316
Fix #322 by only removing git environment variables while cloning
2015-12-22 19:10:08 -08:00
Anthony Sottile
c3c98afe4f
Support pre-commit from inside submodules
2015-12-18 15:35:44 -08:00
Anthony Sottile
2df1dc9023
Add python3.5, pypy3, and latest git to travis
2015-12-04 14:30:15 -08:00
Anthony Sottile
248930f6dc
Fix appveyor and windows. Resolves #293
2015-11-23 22:28:57 -08:00
Anthony Sottile
6eb260f774
Fixups and test for pre-commit/pre-commit#277
2015-10-08 19:08:49 -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
Dmitriy Kunitskiy
72b61a81f9
fix for issue 246
2015-07-20 17:25:08 -07: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
badb41457a
Care less about user installs during test. Resolves #221
2015-05-05 13:19:48 -07: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
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
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
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