247 Commits

Author SHA1 Message Date
Anthony Sottile
cc65fa98d2 Add regression test for external diff tools
See #409
Resolves #410
2016-09-10 09:24:28 -07:00
Anthony Sottile
57cc50e0ad Remove tarfile_open (tarfile open in 2.7+) 2016-08-31 16:24:30 -07:00
Anthony Sottile
b05cc4077e Fix staged-files-only with a non-utf8-trailing-whitespace diff. Resolves #397 2016-08-18 07:37:33 -07:00
Anthony Sottile
5547db93ef Clarify language around missing hooks. Resolves #386 2016-06-25 08:14:58 -07:00
Anthony Sottile
758faa4ae7 Autoupdate to tags when available 2016-06-23 08:29:33 -07:00
Anthony Sottile
d845ec6e36 Merge pull request #375 from vinayinvicible/master
only consider forward diff in changed files
2016-06-01 10:17:21 -07:00
Anthony Sottile
a5f312e4e1 Use python3.4 and 3.5 instead of 3.3 and 3.4 2016-06-01 09:20:41 -07:00
Vinay Karanam
b61a0b5467 added test for git forward diff 2016-06-01 15:49:44 +05:30
Anthony Sottile
db97cf3329 Don't run on deleted files. Resolves #374 2016-05-25 08:42:02 -07:00
Anthony Sottile
efe33ffe5c We're not using pylint 2016-05-20 16:14:18 -07:00
Anthony Sottile
5a6b6e81e9 Don't crash when an executable is not found 2016-05-20 13:32:33 -07:00
Anthony Sottile
82369fd99f Add utility for parsing shebangs and resolving PATH 2016-04-03 22:54:46 -07:00
Anthony Sottile
a932315a15 Implement 'negate' to simplify pcre 2016-03-25 11:21:50 -07:00
Anthony Sottile
b7d395410b Implement a simplified xargs in python 2016-03-25 11:21:50 -07:00
Anthony Sottile
a5b56bd9e3 Factor out bash and activate files 2016-03-25 11:21:50 -07:00
Anthony Sottile
00a3a9a09b Add envcontext helper 2016-03-25 11:21:50 -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
Benjamin Chess
a70abd04e7 include checking symlinks 2016-01-15 12:50:04 -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
Laurent Sigal
5d160e1547 Fix tests 2015-12-22 19:47:22 +00:00
Anthony Sottile
577d8a1dfa v0.7.1 2015-12-19 09:04:25 -08: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
be4d0a2742 Add a helper to modify config files under test 2015-12-09 15:12:36 -08:00
Anthony Sottile
f4d4679fd7 Remove adding config file in one place 2015-12-09 14:27:22 -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
0da258043f Use path.join 2015-11-23 23:46:58 -08:00
Anthony Sottile
248930f6dc Fix appveyor and windows. Resolves #293 2015-11-23 22:28:57 -08:00
Anthony Sottile
b9bc6212c1 Fix some minor windows compatibility things 2015-11-23 14:11:59 -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
Chris Kuehl
31bc019791 Use a different test for grep flags to support old grep 2015-11-20 15:00:14 -08: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
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
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