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
727247e6ed
Add tests for alternate config
2016-12-02 16:25:10 -08: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
0dda19f691
Reorganize output writing
2016-11-26 12:15:55 -08:00
Anthony Sottile
e832ddc57f
Merge pull request #408 from pre-commit/no_pyterminalsize
...
Use 80 or min width instead of terminal size
2016-10-23 16:48:53 -07:00
Anthony Sottile
b81c9802ae
Remove py26 format literals
...
Resolves #403
2016-09-15 08:41:58 -07:00
Anthony Sottile
a677c42e21
Use 80 or min width instead of terminal size
2016-08-31 17:15:52 -07:00
Anthony Sottile
758faa4ae7
Autoupdate to tags when available
2016-06-23 08:29:33 -07:00
Vinay Karanam
b61a0b5467
added test for git forward diff
2016-06-01 15:49:44 +05:30
Anthony Sottile
efe33ffe5c
We're not using pylint
2016-05-20 16:14:18 -07: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
e2451109f7
norm slashes for windows
2016-02-07 13:03:28 -08:00
Anthony Sottile
982be73784
Add regression test for #339 .
2016-02-07 12:33:39 -08:00
Lucas Cimon
941149942d
Making it possible to invoke pre-commit run --files some.file from a subdirectory of the repository
2016-02-07 12:25:51 -08:00
Anthony Sottile
2aaaddb5cc
Fail gracefully on undecodable install output.
2016-01-12 10:08: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
4f58f119b1
Add regression test for always_run setting
2015-12-22 12:33:17 -08:00
Anthony Sottile
c3c98afe4f
Support pre-commit from inside submodules
2015-12-18 15:35:44 -08:00
Anthony Sottile
be4d0a2742
Add a helper to modify config files under test
2015-12-09 15:12:36 -08:00
Anthony Sottile
2df1dc9023
Add python3.5, pypy3, and latest git to travis
2015-12-04 14:30:15 -08:00
Joe Bateson
91a547ed61
Output a message when a hook fails due to file modification
2015-11-25 16:27:47 -08:00
Anthony Sottile
248930f6dc
Fix appveyor and windows. Resolves #293
2015-11-23 22:28:57 -08:00
Anthony Sottile
a3f78bc165
Fail a hook if it makes modifications. Resolves #285
2015-11-12 15:16:55 -08:00
Anthony Sottile
67ad0d2d8e
Remove expected_return_value. Resolves #232
2015-11-12 13:50:29 -08:00
Anthony Sottile
6eb260f774
Fixups and test for pre-commit/pre-commit#277
2015-10-08 19:08:49 -07:00
Barry Steyn
355ce61417
Corrected stages integration test
2015-10-06 08:46:22 -07:00
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