Commit Graph

53 Commits

Author SHA1 Message Date
Anthony Sottile
9c3bbecab8 Add new docker_image language type.
`docker_image` is intended to be a lightweight hook type similar to system /
script which allows one to use an existing docker image which provides a
hook.
2017-09-02 19:49:23 -07:00
Anthony Sottile
86d9ca053b Remove legacy 'hooks.yaml' file support 2017-07-13 10:29:36 -07:00
Anthony Sottile
05a108efe1 Implement exclude_types 2017-07-02 19:08:33 -07:00
Anthony Sottile
a58d99ac40 Implement types filtering 2017-07-02 18:51:23 -07:00
Alex Hutton
f2644a4f2e Adds support for 'log_file' in hook config
Specify a filename on a per hook basis and
pre-commit will write the STDOUT and STDERR
of that hook into the file. Useful for CI.

Resolves #499.
2017-05-08 10:54:04 +10:00
Anthony Sottile
cb8dd335f4 Replace jsonschema with better error messages 2017-03-08 14:07:00 -08:00
Anthony Sottile
068c18d38a Add first class support for golang hooks 2017-01-24 13:49:22 -08:00
Anthony Sottile
b9e5184ebd Introduce .pre-commit-hooks.yaml as a replacement for hooks.yaml 2017-01-21 13:47:59 -08:00
Ben Asher
ca731268a4 added test for swift hook 2017-01-13 13:33:44 -08:00
Ben Picolo
b7bd825e15 Support docker hooks with args 2017-01-05 09:31:22 -05:00
Ben Picolo
9b92f96ed0 Code cleanup and tests 2017-01-04 10:35:00 -05:00
Anthony Sottile
0dda19f691 Reorganize output writing 2016-11-26 12:15:55 -08:00
Anthony Sottile
b81c9802ae Remove py26 format literals
Resolves #403
2016-09-15 08:41:58 -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
Anthony Sottile
5a6b6e81e9 Don't crash when an executable is not found 2016-05-20 13:32:33 -07:00
Anthony Sottile
2aaaddb5cc Fail gracefully on undecodable install output. 2016-01-12 10:08:59 -08:00
Joe Bateson
91a547ed61 Output a message when a hook fails due to file modification 2015-11-25 16:27:47 -08:00
Chris Kuehl
31bc019791 Use a different test for grep flags to support old grep 2015-11-20 15:00:14 -08: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
3472f2b3ce Add some missing no cover comments 2015-10-19 14:18:24 -07:00
Anthony Sottile
7911f4b488 Speed up tests on 14.04 -- rvm has a binary for p551 and not p484 2015-10-05 08:40:51 -07:00
Anthony Sottile
66b1d39c6e Allow arbitrary bytes in output. Resolves #245 2015-07-23 12:59:13 -07:00
Anthony Sottile
143ed94500 Tests pass on windows 2015-02-27 00:48:01 -08:00
Anthony Sottile
26502dfd0b Default arguments from hooks.yaml 2015-01-12 09:35:05 -08:00
Anthony Sottile
fd109b7745 reorder-python-imports 2015-01-04 15:49:19 -08:00
Anthony Sottile
31a3b2ecb6 Install hooks before attempting to run anything 2014-07-04 11:11:21 -07:00
Anthony Sottile
76b42056ee More fixes for tests under osx 2014-06-26 20:00:48 -07:00
Anthony Sottile
2ec7a34035 Fix filenames with spaces in them. 2014-06-20 10:20:02 -07:00
Anthony Sottile
2cfd2818b5 Add pcre type. 2014-06-16 21:11:00 -07:00
Anthony Sottile
07664a80ca Attempt ruby-download before ruby-build. 2014-06-07 14:25:44 -07:00
Anthony Sottile
96174deac6 Make hooks specify files. Optionally allow config to override manifest. 2014-06-05 18:39:34 -07:00
Anthony Sottile
02a79bf1c3 Support language_version for ruby as well. 2014-06-03 13:28:20 -07:00
Anthony Sottile
511de4fe32 Support hooks with custom node version. 2014-06-02 16:10:59 -07:00
Anthony Sottile
fdd6989ece Add failing test for versioned repositories. 2014-06-02 06:39:46 -07:00
Anthony Sottile
61606cfaa4 Allow spaces in system hooks. Closes #95. 2014-05-18 14:20:11 -07:00
Anthony Sottile
b381bb68b7 Support ruby through a combination of rbenv, ruby-build, and GEM_HOME 2014-05-03 23:32:18 -07:00
Anthony Sottile
3d5a360df4 Fix Py3 2014-04-13 18:07:21 -07:00
Anthony Sottile
c91b244105 pyflakes -> flake8 2014-04-13 18:01:35 -07:00
Anthony Sottile
5eda121260 Move stuff into commands and write tests. 2014-04-13 14:07:52 -07:00
Anthony Sottile
1746a97e24 Better project structure 2014-04-12 15:56:18 -07:00
Anthony Sottile
4ed9120ae9 Add staged_files_only context manager. 2014-04-05 19:35:35 -07:00
Anthony Sottile
443b62d56a Add yaml hook. 2014-04-03 22:31:42 -07:00
Anthony Sottile
c418f2b94e Implement no-dependency system and script hook types. Closes #39. 2014-03-30 15:15:13 -07:00
Anthony Sottile
288d32d226 Fix build 2014-03-30 13:32:45 -07:00
Anthony Sottile
a116a3fe37 Merge pull request #49 from pre-commit/fix_cwd_problem
Fix cwd problem
2014-03-30 13:29:18 -07:00
Anthony Sottile
7baf3035c8 Moar manifest -> hooks 2014-03-30 13:17:40 -07:00
Anthony Sottile
c62c1a3b51 manifest -> hooks 2014-03-30 13:12:40 -07:00
Anthony Sottile
aa9c77abe8 Adds failing test for cwd problem. 2014-03-29 13:00:29 -07:00