Anthony Sottile
989bcfe9ca
Use file:// protocol for cloning under test
2017-09-22 10:38:19 -07:00
Anthony Sottile
3e76cdaf25
Enable map configurations (config v2).
2017-09-06 10:01:08 -07:00
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
8f86f8f156
Merge pull request #553 from pre-commit/remove_legacy_hooks_yaml_support
...
Remove legacy 'hooks.yaml' file support
2017-07-26 05:50:41 -07:00
Anthony Sottile
d0b268c813
Add support for commit-msg git hook
2017-07-23 20:50:25 -07:00
Anthony Sottile
be3fbdf94e
Upgrade add-trailing-comma to 0.4.0
2017-07-15 12:32:36 -07:00
Anthony Sottile
86d9ca053b
Remove legacy 'hooks.yaml' file support
2017-07-13 10:29:36 -07:00
Anthony Sottile
0c70fa4229
Use asottile/add-trailing-comma
2017-07-12 18:30:51 -07:00
Anthony Sottile
096f906912
More specific symlink testing without checking in a symlink
2017-07-02 21:49:41 -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
Filippos Giannakos
2f4199850d
Add --allow-missing-config option to install
...
When no '.pre-commit-config.yaml' file exists while `pre-commit` hooks
are enabled, `pre-commit` returns an error and the action is aborted.
This is a very common scenario when pre-commit is added later on a
project and the user wants to work on a previous branch where the
configuration file does not exist.
This commits allow the user to optionally install the `pre-commit` hooks
with an option to allow a missing configuration and trigger only the
legacy pre-commit hooks (if any) when it is missing.
2017-02-23 18:25:51 +02:00
Anthony Sottile
f000241dcb
Local repositories clone a blank repo
2017-02-15 15:36:53 -08:00
Thierry Deo
e02c489d76
PCRE tests work on osx
2017-02-15 08:11:50 -08:00
Anthony Sottile
7e512004d6
Remove pre_commit.ordereddict module
2017-01-30 08:21:34 -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
Anthony Sottile
b6937f33e2
Fixups to make appveyor happy
2017-01-16 18:50:49 -08:00
Ben Asher
ac2520c86f
skip if swift not installed
2017-01-13 13:51:10 -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
Jacob Scott
727247e6ed
Add tests for alternate config
2016-12-02 16:25:10 -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
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
f8c82f99fd
Make the pcre check for a more compliant implementation
2016-04-07 21:33:10 -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
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
be4d0a2742
Add a helper to modify config files under test
2015-12-09 15:12:36 -08:00
Anthony Sottile
ce307a16e0
Add an option to require a specific pre-commit version
2015-12-06 20:54:07 -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
b9bc6212c1
Fix some minor windows compatibility things
2015-11-23 14:11:59 -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
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
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
Lucas Cimon
b68261c720
Adding support for locally-defined hooks
2015-05-10 23:57:34 +02:00