Anthony Sottile
50848aaca2
Merge pull request #2709 from pre-commit/test-lua
...
test lua directly
2023-01-18 00:12:28 -05:00
Anthony Sottile
f042540311
test lua directly
2023-01-17 23:43:31 -05:00
Anthony Sottile
7512e3b7e1
test r language directly
2023-01-17 23:25:00 -05:00
Anthony Sottile
043565d28a
test dart directly
2023-01-17 18:44:14 -05:00
Anthony Sottile
d24055cb40
test perl language directly
2023-01-17 17:34:04 -05:00
Anthony Sottile
9a56f8dca0
Merge pull request #2705 from pre-commit/speed-up-r-tests
...
speed up R unit tests
2023-01-17 14:51:00 -05:00
Anthony Sottile
966c67a832
speed up R unit tests
2023-01-17 14:16:13 -05:00
Anthony Sottile
c36f03cd2e
test swift language directly
2023-01-17 13:51:06 -05:00
Anthony Sottile
f1b5f66374
test conda language directly
2023-01-17 13:05:49 -05:00
Anthony Sottile
70bfd76ced
coursier: additional_dependencies support
2023-01-17 09:59:04 -05:00
Anthony Sottile
628c876b2d
adjust the run_hook api to no longer take Hook
2023-01-16 16:34:01 -05:00
taoufik07
9afd63948e
Make Go a first class language
2023-01-13 12:42:57 -05:00
taoufik07
bf1a1fa5fd
Fix command normalization when a custom env is passed
2023-01-06 09:27:49 -05:00
taoufik07
60a42e9419
Remove GOPATH special build
2023-01-02 18:53:14 -05:00
Anthony Sottile
8e57e8075d
avoid using hook.src in R language
...
this wasn't meant to be read -- hook.prefix works fine for local too
2023-01-01 19:02:20 -05:00
Lorenz Walthert
52948f610c
When R executable is an explicit path, we need to appene .exe on Windows
2022-12-12 13:21:55 -05:00
Anthony Sottile
b00c31cf9e
use a newer version of ruby which builds cleanly
2022-12-12 12:22:39 -05:00
Anthony Sottile
92c70766fd
fix rust coverage on windows
...
it's a complete mystery why this isn't needed on other platforms, the branch is legitimately uncovered there
2022-12-06 17:36:57 -05:00
marsha
42102a1bfd
Remove expected_returncode from CalledProcessError
2022-10-30 15:31:45 -05:00
Jan Holthuis
eb469c756d
Rust as 1st class language
2022-10-10 20:05:36 -04:00
Anthony Sottile
07554e9525
add additional info to healthy-after-install check
2022-04-16 16:46:28 -04:00
Jeff Sullivan
764a0db68e
use Rscript path relative to $R_HOME/bin/...
...
Co-authored-by: Lorenz Walthert <lorenz.walthert@icloud.com>
2022-04-02 14:22:29 -04:00
Anthony Sottile
2188c0fd2c
include the configured value in the language_version / additional_dependencies error
2022-03-30 11:14:00 -04:00
Anthony Sottile
04de6a2e57
drop python 3.6 support
...
python 3.6 reached end of life on 2021-12-23
2022-01-18 18:44:20 -05:00
Uwe L. Korn
83aa65c429
Add mamba support to language: conda
2022-01-15 16:28:44 -05:00
Anthony Sottile
f637ac8603
minor py2 cleanup for sys.stderr.buffer
2021-12-20 17:01:51 -05:00
Anthony Sottile
f8e21cb78b
add support for dart as a hook language
2021-08-29 08:57:56 -07:00
Anthony Sottile
5d1cac64c1
ignore self-container when in docker-in-docker
2021-08-03 13:08:07 -07:00
Adar Nimrod
3e1020945e
A more reliable way to get the container id.
...
The hostname is not always the container id. Get the container id from
/proc/1/cgroup. Fixes #1918 .
2021-07-03 10:43:11 -07:00
Anthony Sottile
3922263f8c
Use more inclusive language
...
Committed via https://github.com/asottile/all-repos
2021-05-14 19:11:05 -07:00
Lorenz
788aec156f
local r hooks should not get prefix for path
2021-05-05 18:15:56 -07:00
Oleg Kainov
6d5d386c9f
fix: fix path mounting when running in Docker
...
Currently pre-commit mounts the current directory to /src and uses
current directory name as mount base.
However this does not work when pre-commit is run inside the container
on some mounted path already, because mount points are relative to the
host, not to the container.
Fixes #1387
2021-04-28 19:21:34 -07:00
Anthony Sottile
d5eda977ce
fix archive permissions for ruby tar.gz roots
2021-04-06 07:55:32 -07:00
Lorenz
f1502119a2
add support for R via renv
2021-03-07 13:58:14 -08:00
Anthony Sottile
7486dee082
fix for base executable with non-ascii characters on windows
2020-11-25 12:44:48 -08:00
Anthony Sottile
e05ac1e91f
don't call ruby install for language_version = default
2020-10-29 19:45:06 -07:00
Anthony Sottile
62b8d0ed82
allow default language_version of system when homedir is /
2020-10-28 22:56:10 -07:00
Anthony Sottile
7f9f66e542
don't use system for ruby/node if it is a shim exe
2020-10-28 16:52:55 -07:00
Anthony Sottile
29f3e67655
improve node install by using npm pack
2020-10-28 15:13:53 -07:00
Marco Gorelli
a0658c06bf
add --negate flag to pygrep
2020-10-17 18:50:40 +01:00
Marco Gorelli
2fc676709d
Remove unnecessary fixtures in signatures from pygrep tests
2020-10-16 13:11:18 -07:00
Ruairidh MacLeod
003e4c21e0
add initial dotnet support
2020-09-27 15:04:35 -07:00
Anthony Sottile
58a190fd69
don't pass through -p if using the default version
2020-09-23 17:44:18 -07:00
Anthony Sottile
b149c7a344
fix for node healthy() when system executable moves
2020-09-07 13:23:02 -07:00
Anthony Sottile
b63b37ac36
fix cache of invalidated unhealthy environment version info
2020-08-23 10:17:24 -07:00
Ruairidh MacLeod
eb8b48aeb4
remove docker_is_running check from source
...
Moved to testing.util so it can be used for the skipif_cant_run_docker
test hooks.
2020-08-22 17:33:32 -07:00
Anthony Sottile
e1e6a32c51
skip rbenv if ruby and gem are installed with default language_version
2020-06-15 13:50:47 -07:00
Anthony Sottile
e120828042
use the shuffle method of Random instead
2020-05-31 12:42:17 -07:00
Anthony Sottile
3d50b3736a
Improve python healthy() and eliminate python_venv
...
- the `healthy()` check now requires virtualenv 20.x's metadata
- `python_venv` is obsolete now that `virtualenv` generates the same structure
and `virtualenv` is more portable
2020-05-03 21:55:48 -07:00
Anthony Sottile
282527ef16
Merge pull request #1388 from pre-commit/node_default_system
...
Default to `language_version: system` if node and npm are installed
2020-04-09 16:48:18 -07:00