Anthony Sottile
a3e3b3d8aa
fix for rbenv used outside of pre-commit and language_version: default
2020-11-17 11:58:46 -08:00
Ruairidh MacLeod
aa8023407e
fix dotnet build cleanup
2020-11-03 08:53:17 -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
Joseph Moniz
70ab1c3b6f
add coursier (jvm) as a language
2020-10-27 09:21:54 -07:00
Marco Gorelli
a0658c06bf
add --negate flag to pygrep
2020-10-17 18:50:40 +01:00
Anthony Sottile
3584b99caa
simplify docker run
2020-10-10 18:09:51 -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
365f896c36
fix a few spelling errors
...
found via `pre-commit try-repo https://github.com/codespell-project/codespell --all-files`
2020-09-20 19:21:24 -07:00
Anthony Sottile
3e2b9dc91a
Merge pull request #1603 from pre-commit/no_format_executable
...
Fix ruby hooks when --format-executable is in gemrc
2020-09-18 09:37:41 -07:00
Anthony Sottile
13eed4ac5b
Fix ruby hooks when --format-executable is in gemrc
...
I used this gemrc to break things (default on opensuse):
```yaml
---
:benchmark: false
:install: --format-executable --no-user-install
install: --format-executable --no-user-install
:backtrace: true
:update_sources: true
:format_executable: true
:verbose: true
:update: --format-executable --no-user-install
update: --format-executable --no-user-install
:bulk_threshold: 1000
:sources:
- https://rubygems.org
```
2020-09-18 09:13:19 -07:00
Anthony Sottile
4888644990
remove hardcoded python location
2020-09-15 12:04:25 -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
6ec47ea736
fix node hooks when NPM_CONFIG_USERCONFIG is set
2020-06-19 13:58:14 -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
0781dac78f
avoid a UnicodeError on windows with non-charmap characters
2020-05-27 13:14:29 -07:00
Thierry Deo
b44461da33
Unset GEM_PATH for ruby hooks
2020-05-10 12:12:15 -07:00
Anthony Sottile
f455312944
Merge pull request #1431 from pre-commit/better_healthy
...
Improve python healthy() and eliminate python_venv
2020-05-04 10:52:59 -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
3b728fdb76
yay french strings
2020-05-02 11:37:31 -07:00
Anthony Sottile
e492a5578c
disable pip version check in python hooks
2020-04-29 12:11:34 -07:00
Anthony Sottile
522e82b7b7
Allow pip to be upgradable on windows
2020-04-17 07:41:11 -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
Anthony Sottile
0f528544b5
Default to language_version: system if node and npm are installed
2020-04-07 20:31:42 -07:00
KYLE ZHU
23d5b78fdb
Don't use --user when running docker on windows
2020-03-19 21:55:16 -07:00
Anthony Sottile
7a49309035
mark a python environment as unhealthy if python goes missing
2020-03-12 09:40:56 -07:00
Anthony Sottile
67c1beb322
Use covdefaults to handle coveragerc
2020-02-29 14:25:19 -08:00
Anthony Sottile
fa8d022813
Remove unnecessary forward annotations
2020-02-07 08:32:39 -08:00
Anthony Sottile
44f5753bd8
shlex-quote install path to fix windows
2020-02-03 10:39:08 -08:00
Ville Skyttä
bb29630d57
First cut at Perl hook support
2020-01-30 09:19:58 +02:00
Anthony Sottile
9e4dc7f349
Fix pre-commit in python 3.6.0-3.6.1
2020-01-29 17:40:16 -08:00
Anthony Sottile
95b8d71bd9
Move most of the actual hook script into pre-commit hook-impl
2020-01-21 16:41:22 -08:00
Anthony Sottile
755b8000f6
move Hook data type to a separate file
2020-01-15 14:20:51 -08:00
Anthony Sottile
df40e862f4
More miscellaneous cleanup
2020-01-13 11:47:34 -08:00
Anthony Sottile
5706b9149c
deep listdir works in python3 on windows
2020-01-12 13:39:53 -08:00
Anthony Sottile
67c2dcd90d
Remove pre_commit.five
2020-01-12 13:39:53 -08:00
Anthony Sottile
5e52a657df
Remove unused ruby activate script
2020-01-12 13:39:53 -08:00
Anthony Sottile
5d767bbc49
Replace match.group(n) with match[n]
2020-01-12 13:39:53 -08: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
4eea90c26c
leverage mypy to check language implementations
2020-01-12 10:15:02 -08:00
Anthony Sottile
327ed924a3
Add types to pre-commit
2020-01-12 10:15:01 -08:00
Anthony Sottile
fa536a8693
mypy passes with check_untyped_defs
2020-01-12 09:27:04 -08:00
Anthony Sottile
30c1e8289f
upgrade hooks, pyupgrade pre-commit
2020-01-12 09:27:04 -08:00