Commit Graph

1820 Commits

Author SHA1 Message Date
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
801a31302d Merge pull request #1599 from pre-commit/remove_hardcoded_c_python
remove hardcoded python location
2020-09-15 12:44:52 -07:00
Anthony Sottile
4888644990 remove hardcoded python location 2020-09-15 12:04:25 -07:00
Anthony Sottile
8f32c5b929 Merge pull request #1595 from Celeborn2BeAlive/1583-wrong-shebang-line-win10-pyenvwin
Drop python.exe extension on windows in shebang line to fix pyenv-win setup
2020-09-09 13:19:39 -07:00
Celeborn2BeAlive
273326b89b drop python.exe extension on windows on shebang 2020-09-09 12:42:48 -07:00
Anthony Sottile
8e9f927e3d Merge pull request #1592 from pre-commit/ws_traceback
fix excess whitespace in traceback in error
2020-09-07 15:23:16 -07:00
Anthony Sottile
3a0406847b fix excess whitespace in traceback in error 2020-09-07 15:01:50 -07:00
Anthony Sottile
918821b7e0 Merge pull request #1590 from pre-commit/nodeenv_system_healthy_fix
fix for node healthy() when system executable moves
2020-09-07 14:24:11 -07:00
Anthony Sottile
b149c7a344 fix for node healthy() when system executable moves 2020-09-07 13:23:02 -07:00
Anthony Sottile
f511afe40e v2.7.1 v2.7.1 2020-08-23 10:53:21 -07:00
Anthony Sottile
7c804cabe6 Merge pull request #1577 from pre-commit/os_replace
fix atomic file replace on windows
2020-08-23 10:49:14 -07:00
Anthony Sottile
fe70c72691 Merge pull request #1576 from pre-commit/immediately_unhealthy_cache
fix cache of invalidated unhealthy environment version info
2020-08-23 10:49:07 -07:00
Anthony Sottile
79b098c409 fix atomic file replace on windows 2020-08-23 10:18:59 -07:00
Anthony Sottile
b63b37ac36 fix cache of invalidated unhealthy environment version info 2020-08-23 10:17:24 -07:00
Anthony Sottile
2e0ee5f5b2 Merge pull request #1572 from rkm/issues/1569-docker-perf
remove docker_is_running check from source
2020-08-22 18:03:50 -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
f1de792877 v2.7.0 v2.7.0 2020-08-22 13:31:12 -07:00
Anthony Sottile
a438dbfcf6 Merge pull request #1570 from pre-commit/readonly
allow pre-commit to succeed on a readonly store directory
2020-08-22 11:19:11 -07:00
Anthony Sottile
bf33f4c91c allow pre-commit to succeed on a readonly store directory 2020-08-22 10:51:57 -07:00
Anthony Sottile
9a5461db24 Merge pull request #1566 from thetradedesk/master
Save diff between hook executions
2020-08-21 21:02:09 -07:00
Johan Henkens
4063730925 Save diff between hook executions 2020-08-21 20:41:06 -07:00
Anthony Sottile
4f5cb99ff5 Merge pull request #1544 from pre-commit/wip_warning_on_old_config_style
warn on old list-style configuration
2020-07-25 14:27:08 -07:00
Anthony Sottile
e384c182bc Merge pull request #1546 from pre-commit/error_logging_read_only_filesystem
better error handling when Store is readonly
2020-07-25 13:10:39 -07:00
Anthony Sottile
68510596d3 warn on old list-style configuration 2020-07-25 13:04:54 -07:00
Anthony Sottile
cee834bb5e better error handling when Store is readonly 2020-07-25 12:32:54 -07:00
Anthony Sottile
c0f750d9b3 Merge pull request #1539 from singergr/feat/no-allow-missing-config
Add --no-allow-missing-config option to init-templatedir
2020-07-20 19:21:11 -07:00
Greg Singer
1b435f1f1f add init-templatedir --no-allow-missing-config
Add a `--no-allow-missing-config` option to the `init-templatedir`
command. Enable configuration of a Git template that requires newly
cloned repos to have a `pre-commit` config.
2020-07-20 19:02:35 -07:00
Anthony Sottile
0e851bdf75 Merge pull request #1535 from pre-commit/require_healthy_after_install
require healthy() after installation
2020-07-17 11:50:09 -07:00
Anthony Sottile
7da72563dd require healthy() after installation 2020-07-15 21:07:21 -07:00
Anthony Sottile
2f1d4d10e0 Merge pull request #1531 from pre-commit/upgrade_mypy
upgrade mypy to get typeshed fixes
2020-07-08 14:22:23 -07:00
Anthony Sottile
c9ad2e1451 upgrade mypy to get typeshed fixes 2020-07-08 13:55:28 -07:00
Anthony Sottile
6fe1702ee1 v2.6.0 v2.6.0 2020-07-01 12:39:34 -07:00
Anthony Sottile
e2fe94cbe7 Merge pull request #1521 from pre-commit/npm_config_userconfig
fix node hooks when NPM_CONFIG_USERCONFIG is set
2020-06-19 14:15: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
7d46852aa9 Merge pull request #1518 from pre-commit/xfail_node_windows
xfail a flaky node test on windows
2020-06-17 22:42:18 -07:00
Anthony Sottile
1392471854 xfail a flaky node test on windows 2020-06-17 12:55:30 -07:00
Anthony Sottile
a336a6b0b5 Merge pull request #1506 from Pierre-Sassoulas/master
Add three missing required dependencies in CONTRIBUTING.md
2020-06-15 14:19:03 -07:00
Anthony Sottile
ecaf70128a Merge pull request #1509 from pre-commit/system_language_version_ruby
skip rbenv if ruby and gem are installed with default language_version
2020-06-15 14:13:44 -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
Pierre Sassoulas
fd53cdea17 Add foor missing required dependencies in CONTRIBUTING.md
There could still be missing dependencies, I'm not using a fresh environement
to test that. Also added the specific required git version see
https://github.com/git/git/blob/master/Documentation/RelNotes/2.24.0.txt
2020-06-12 18:38:44 +02:00
Anthony Sottile
0e5eb19929 v2.5.1 v2.5.1 2020-06-09 14:18:42 -07:00
Anthony Sottile
8ffcd386ae Merge pull request #1497 from pre-commit/no_recurse_clone
prevent infinite recursion of post-checkout on clone
2020-06-09 14:15:35 -07:00
Anthony Sottile
6ee9e13b26 prevent infinite recursion of post-checkout on clone 2020-06-09 10:18:22 -07:00
Anthony Sottile
2f25085d60 v2.5.0 v2.5.0 2020-06-08 15:17:13 -07:00
Anthony Sottile
e69e3e04a1 Merge pull request #1494 from pre-commit/normalize_slashes_more
normalize slashes even earlier on windows for filenames
2020-06-08 15:08:24 -07:00
Anthony Sottile
5fb721f7a7 normalize slashes even earlier on windows for filenames 2020-06-08 14:53:27 -07:00
Anthony Sottile
79359ed4e2 Merge pull request #1480 from pre-commit/random_meth
use the shuffle method of Random instead
2020-05-31 12:59:41 -07:00
Anthony Sottile
e120828042 use the shuffle method of Random instead 2020-05-31 12:42:17 -07:00
Anthony Sottile
d71699d7cd Merge pull request #1474 from pre-commit/unicode_error_py_launcher
avoid a UnicodeError on windows with non-charmap characters
2020-05-27 15:02:41 -07:00