Anthony Sottile
f8e21cb78b
add support for dart as a hook language
2021-08-29 08:57:56 -07:00
Lorenz
b8fff8c508
Avoid warnings with R hooks when renv version don't match
2021-05-04 18:56:43 -07:00
Lorenz
f1502119a2
add support for R via renv
2021-03-07 13:58:14 -08:00
Rafik Draoui
fe1f56c08f
Add support for Go 1.16
...
Go 1.16 changes the way modules are handled. It now expects Go projects
to have non-empty `go.mod` files.
This change is compatible with Go 1.15.
Fixes #1815
2021-02-25 19:25:39 -04:00
Marco Gorelli
62f668fc3f
add types_or
2020-11-02 17:25:10 +00:00
Joseph Moniz
70ab1c3b6f
add coursier (jvm) as a language
2020-10-27 09:21:54 -07:00
Ruairidh MacLeod
003e4c21e0
add initial dotnet support
2020-09-27 15:04:35 -07:00
Ville Skyttä
1295364986
Add basic perl repo test
2020-02-01 15:41:14 +02:00
Anthony Sottile
9000e9dd41
Some manual .format() -> f-strings
2020-01-12 13:39:53 -08:00
Anthony Sottile
aefbe71765
Clean up calls to .encode() / .decode()
2020-01-12 10:46:33 -08:00
Anthony Sottile
76a184eb07
Update get-swift for bionic
2020-01-12 10:15:02 -08:00
Anthony Sottile
ab19b94811
some manual py2 cleanups
2020-01-12 09:27:04 -08:00
Anthony Sottile
30c1e8289f
upgrade hooks, pyupgrade pre-commit
2020-01-12 09:27:04 -08:00
Anthony Sottile
0c0427bfbd
Add duration to verbose run
2019-12-28 18:20:10 -08:00
Uwe L. Korn
4ff23b4eab
Support for conda as a language
2019-12-20 18:43:59 -08:00
Anthony Sottile
7c3404ef1f
show color in hook outputs when attached to a tty
2019-10-12 23:17:36 -07:00
Anthony Sottile
2633d38a63
Fix ordering of mixed stdout / stderr printing
2019-10-12 13:35:04 -07:00
Anthony Sottile
bea33af310
small cleanups in tests
2019-01-06 12:08:52 -08:00
Anthony Sottile
c577ed92e7
Refactor pre_commit.repository and factor out cached-property
2018-12-30 20:56:49 -08:00
Anthony Sottile
51cf46e660
Simplify setup.py in arbitrary_bytes_repo
2018-06-03 20:56:07 -07:00
Chris Kuehl
b4edf2ce50
Add tests for Rust
2018-05-22 21:52:34 -07:00
Anthony Sottile
f88e007f52
Fix test since pip 10 changed output
2018-05-21 21:38:36 -07:00
Anthony Sottile
b5af5a5b27
Add test for python_venv language
2018-05-12 11:37:13 -07:00
Anthony Sottile
b4541d8a5f
Update the versioned node hook test
2018-01-11 22:20:21 -08:00
Anthony Sottile
a506a1cac1
Simplify cross version tests
2018-01-02 18:34:00 -08:00
Anthony Sottile
e9509306d8
Implement pygrep language as a replacement for pcre
2017-09-22 22:31:30 -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
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