Commit Graph

161 Commits

Author SHA1 Message Date
Anthony Sottile
136834038d Use npm install git+file:// instead of npm install . 2019-02-17 10:14:21 -08:00
Andrew S. Brown
1eed1b51b8 Address PR feedback 2019-01-27 17:55:11 -08:00
Andrew S. Brown
fe5390c068 Ensure that GOBIN is not set when installing a golang hook
If GOBIN is set, it will be used as the install path instead of the first item
from GOPATH followed by "/bin".  If it is used, commands will not be isolated
between different repos.
2019-01-27 13:34:47 -08:00
Anthony Sottile
32d65236bf Use sys.executable if it matches the requested version 2019-01-10 06:48:49 -08:00
Anthony Sottile
d3b5a41830 Implement default_language_version 2019-01-05 13:15:23 -08:00
Anthony Sottile
4f9d0397b5 Add more 'no cover windows' comments 2018-12-31 14:06:10 -08:00
Anthony Sottile
b59d7197ff Use Hook api in languages 2018-12-31 13:16:48 -08:00
Anthony Sottile
2af0b0b4f3 better no-cover for windows 2018-12-27 18:25:52 -08:00
Anthony Sottile
c5c0a0699b Merge pull request #895 from pre-commit/rip_runner
Remove stateful Runner
2018-12-26 23:11:38 -08:00
Anthony Sottile
2b8291d18f add a no-cover for py3 [ci skip] 2018-12-26 22:45:13 -08:00
Anthony Sottile
fe409f1a43 Remove stateful Runner 2018-12-26 22:33:21 -08:00
Anthony Sottile
435d9945a3 Switch from deprecated docs-off args to --no-document 2018-12-19 14:22:09 -08:00
Chris Kuehl
45e3dab00d Shuffle arguments before running hooks 2018-11-19 17:53:19 -08:00
Anthony Sottile
6bac405d40 Minor cleanups 2018-11-01 18:05:36 -07:00
Chris Kuehl
9125439c3a Force serial hook runs during tests 2018-10-24 16:33:06 -07:00
Chris Kuehl
ec0ed8aef5 Handle CPU detection errors and running on Travis 2018-10-24 16:16:13 -07:00
Chris Kuehl
ba5e27e4ec Implement concurrent execution of individual hooks 2018-10-24 16:16:10 -07:00
Anthony Sottile
9f60561d6f Replace resources with importlib_resources 2018-10-14 14:37:35 -07:00
Anthony Sottile
a6e2e1d4bb Add language: fail 2018-08-10 18:11:28 -07:00
Anthony Sottile
0eaacd7c8e Default to python3 when using python_venv under python 2 2018-07-17 18:24:29 -07:00
Anthony Sottile
805a2921ad Invoke -mvenv with the original python if in a -mvirtualenv venv 2018-05-28 15:14:17 -07:00
Chris Kuehl
b4edf2ce50 Add tests for Rust 2018-05-22 21:52:34 -07:00
Chris Kuehl
2a37fcd3fe Add support for Rust CLI dependencies
Also consistently build the hook using `cargo install`.
2018-05-22 21:20:13 -07:00
Chris Kuehl
7f85da1b9d Add Rust support 2018-05-22 21:20:13 -07:00
Anthony Sottile
b5af5a5b27 Add test for python_venv language 2018-05-12 11:37:13 -07:00
Anthony Sottile
e8954e2bf3 Simplify python_venv interface 2018-05-12 09:28:49 -07:00
Jonas Obrist
d6825fa0fc added python venv language 2018-04-27 17:13:47 +09:00
Anthony Sottile
65f001b007 Fix go 1.10: no pkg dir 2018-03-12 14:02:34 -07:00
Anthony Sottile
c6b6d2340e Merge pull request #716 from tdeo/multiline_pygrep
Add multiline mode to pygrep
2018-03-09 09:39:09 -08:00
Thierry Deo
55ef3ce960 Address review comments 2018-03-09 09:22:34 +01:00
Thierry Deo
55c74c10d9 Rename option to and improve output 2018-03-08 09:42:32 +01:00
Thierry Deo
19075371fa Pre-commit compliance 2018-03-07 09:35:08 +01:00
Thierry Deo
25c06e6525 Remove encoding dependence 2018-03-07 09:24:56 +01:00
Anthony Sottile
2722e16fd8 Use --clean-src for nodeenv 2018-03-01 14:06:48 -08:00
Thierry Deo
3793bc32c0 Fix linters 2018-02-26 15:46:33 +01:00
Thierry Deo
2d57068f49 Remove newlines from file contents 2018-02-26 13:29:40 +01:00
Thierry Deo
69333fa227 Add multiline mode to pygrep 2018-02-26 10:17:21 +01:00
Anthony Sottile
8fb644e7c0 Simplify prefix a bit 2018-01-13 16:08:18 -08:00
Anthony Sottile
6e46d6ae75 Support node on windows with long path hack 2018-01-12 22:31:43 -08:00
Anthony Sottile
7d87da8acd Move PrefixedCommandRunner -> Prefix 2018-01-11 21:41:48 -08:00
Anthony Sottile
753979d720 Detect the python version based on the py launcher 2018-01-02 19:02:26 -08:00
Anthony Sottile
2e5b4fcf4c Add comment about Z flag for selinux 2017-11-02 15:30:28 -07:00
Jimmi Dyson
f0cf940cb5 Add selinux labelling option to docker_image hook type 2017-10-23 11:11:24 +01:00
Anthony Sottile
e70825ab31 Add ctypes to healthy check 2017-10-03 21:10:09 -07:00
Anthony Sottile
e9509306d8 Implement pygrep language as a replacement for pcre 2017-09-22 22:31:30 -07:00
Anthony Sottile
989bcfe9ca Use file:// protocol for cloning under test 2017-09-22 10:38:19 -07:00
Anthony Sottile
b907c02f05 Also check the ssl module for virtualenv health. 2017-09-14 10:09:25 -07:00
Anthony Sottile
92f98088eb Whitespace fixup 2017-09-06 08:28:50 -07:00
Lucas Cimon
e465129bd4 NodeJS hooks compatibilty fix for Cygwin - take 2 2017-09-06 17:16:58 +02: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