Commit Graph

182 Commits

Author SHA1 Message Date
Uwe L. Korn
4ff23b4eab Support for conda as a language 2019-12-20 18:43:59 -08:00
Ryan Rhee
addc7045ba grammar 2019-11-01 11:33:04 -04:00
Anthony Sottile
bfcee8ec9f Fix python.healthy() check with stdlib module clashes 2019-10-22 13:23:57 -07:00
Anthony Sottile
7c3404ef1f show color in hook outputs when attached to a tty 2019-10-12 23:17:36 -07:00
Anthony Sottile
38766816ac Fix fail type signature 2019-10-12 21:29:15 -07:00
Anthony Sottile
f612aeb22b Split out cmd_output_b 2019-10-06 15:16:47 -07:00
Anthony Sottile
8537e7c94e Simplify if statement slightly 2019-08-27 10:35:40 -07:00
Henry Tang
b0c7ae4d29 Fix NODE_PATH on win32 2019-08-28 00:03:04 +08:00
Ville Skyttä
562276098c Address more @asottile's review comments 2019-08-15 18:54:08 +03:00
Ville Skyttä
38da98d2d6 Address @asottile's review comments 2019-08-15 18:43:31 +03:00
Ville Skyttä
fa2e154b41 Stabilize python default version lookup
For example, for sys.executable:
    /usr/bin/python3 -> python3.7
...the default lookup may return either python3 or python3.7. Make the
order deterministic by iterating over tuple, not set, of candidates.
2019-08-15 10:06:31 +03:00
zimbatm
cbbfcd20b4 rust language: use the new cargo install command
cargo install now requires an additional `--path <TARGET>` argument.
2019-08-11 13:36:13 -07:00
Edgar Geier
d4a9ff4d1f Simplify docker user fallback implementation and test 2019-07-25 11:22:59 +02:00
Edgar Geier
b43b6a61ab Add docker uid and gid fallback tests 2019-07-23 15:14:06 +02:00
Edgar Geier
b7ce5db782 Use fallback uid and gid if os.getuid() and os.getgid() are unavailable 2019-07-23 12:38:09 +02:00
Anthony Sottile
9bdce088c8 Use sys.executable if it matches on posix as well 2019-06-17 07:54:38 -07:00
Anthony Sottile
d74ee6d743 Don't attempt to decode the healthy response 2019-05-07 09:38:17 -07:00
Anthony Sottile
9c6edab726 azure pipelines [skip travis] [skip appveyor] 2019-04-28 21:39:06 -07:00
Anthony Sottile
d71a75fea2 Run npm install before npm install -g 2019-03-14 18:31:57 -07:00
Anthony Sottile
3cb35e8679 Revert "Merge pull request #949 from asottile/npm_install_git"
This reverts commit a4c1a701bc, reversing
changes made to 889124b5ca.
2019-03-14 18:20:30 -07:00
Anthony Sottile
6088b1f995 3 slashes works around an npm bug
https://npm.community/t/npm-install-g-git-file-c-path-to-repository-does-not-work-on-windows/5453
2019-02-17 12:17:46 -08:00
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