Commit Graph

275 Commits

Author SHA1 Message Date
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
a488424501 Use python3.5 in appveyor over py34 2015-12-22 14:40:30 -08:00
Laurent Sigal
a72ca3d68e Less blocking logic 2015-12-22 19:06:31 +00:00
Laurent Sigal
5a08204b8d Allow to simply run a script once - no matter what the changes are 2015-12-22 18:12:08 +00:00
Anthony Sottile
c3c98afe4f Support pre-commit from inside submodules 2015-12-18 15:35:44 -08:00
Anthony Sottile
3f02a66e37 Use rev-parse --show-toplevel 2015-12-18 08:04:26 -08:00
Anthony Sottile
b85a674026 Make additional_dependencies rollforward safe 2015-12-10 12:21:03 -08:00
Anthony Sottile
ce307a16e0 Add an option to require a specific pre-commit version 2015-12-06 20:54:07 -08:00
Anthony Sottile
005cb868e0 Allow '.format('-like strings in arguments. Resolves #314. 2015-12-06 18:50:57 -08:00
Anthony Sottile
2df1dc9023 Add python3.5, pypy3, and latest git to travis 2015-12-04 14:30:15 -08:00
Anthony Sottile
2463738af4 Fix printing of non-ascii in error handler 2015-12-01 12:48:44 -08:00
Anthony Sottile
603bf159d9 Produce a useful error message when hook id is not present. Resolves #194 2015-11-25 23:13:49 -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
d17063862b Fix issue #300 by removing GIT_WORK_TREE env variable 2015-11-23 16:30:24 -08:00
Anthony Sottile
66e8ed5ad5 Remove unneeded format chunk 2015-11-23 15:04:55 -08:00
Anthony Sottile
de2ead13a1 Minor fixups 2015-11-23 12:19:02 -08:00
Anthony Sottile
7c8272da77 Merge pull request #295 from blarghmatey/install_dependencies
Added the additional_dependencies config parameter
2015-11-23 12:08:15 -08:00
Tobias Macey
0980887f57 Added new parameter to config schema 2015-11-20 20:24:01 -05:00
Anthony Sottile
738c2ad7bd Fixups + make the tests work 2015-11-20 13:52:20 -08:00
Tobias Macey
0ee4c3efa7 Added unit tests for dependencies 2015-11-20 15:45:34 -05:00
Tobias Macey
862426576f Merge pull request #1 from pre-commit/slight_fixups
Some slight fixups
2015-11-19 22:36:28 -05:00
Tobias Macey
d6be9cdf7c Added shell_escape to shell escape dependencies 2015-11-19 16:15:40 -05:00
Anthony Sottile
fb0d67bd87 Some slight fixups 2015-11-19 12:46:02 -08:00
Tobias Macey
3726f07a3f Reformatted method signatures, fixed typos 2015-11-19 15:16:02 -05:00
Tobias Macey
06b3d91da0 Added the additional_dependencies config parameter
Added the ability to specify additional dependencies to be installed in
the pre-commit environment. Fixed broken tests.
2015-11-19 12:29:41 -05:00
Thierry Deo
f0c198f1ad Allow args for pcre hook 2015-11-18 11:39:04 +01:00
Anthony Sottile
4b2f83d11e Fix hooks that apply non-utf8 diffs 2015-11-13 10:08:37 -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
3472f2b3ce Add some missing no cover comments 2015-10-19 14:18:24 -07:00
Mark Larah
1bda89458b Changed to use --no-ri --no-rdoc
Changed to use --no-ri --no-rdoc to fix gem installs on OS X
2015-10-14 17:42:34 +01:00
Anthony Sottile
6eb260f774 Fixups and test for pre-commit/pre-commit#277 2015-10-08 19:08:49 -07:00
Barry Steyn
e216b0b2cc Fix bug - pushing on an empty changeset 2015-10-08 11:26:18 -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
3eba6ff48a Fix quoting in help 2015-09-30 17:15:02 -07:00
Thierry Deo
7fd709ebd3 Use ggrep instead of grep for pcre on mac os 2015-09-03 11:44:39 +02:00
Anthony Sottile
7321108083 Supress stderr when TERM is unset 2015-08-19 12:02:28 -07:00
Anthony Sottile
4da968a5ea Merge pull request #258 from meunierd/expanduser
Allow specifying python version relative to user's home directory.
2015-08-13 11:32:28 -07:00
Devon Meunier
6a580a0c09 Allow specifying python version relative to user's home directory. 2015-08-13 12:03:26 -04:00
Lucas Cimon
b0791a22bd Adding "--no-document" argument to "gem install" command for ruby-based hooks to fix issue with Cygwin 2015-08-13 16:35:20 +02:00
Chris Kuehl
01fd58c675 Fix import ordering in clientlib/validate_base 2015-07-29 00:41:56 -04:00
Anthony Sottile
ff5e6e5e89 Merge pull request #250 from chriskuehl/add_version_to_validators
Add --version option to validator binaries
2015-07-26 09:16:00 -04:00
Chris Kuehl
719d19699f Add --version option to validator binaries 2015-07-25 22:47:46 -07:00
Chris Kuehl
ec6f6cc854 Make pre-push-tmpl non-executable 2015-07-25 22:33:38 -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