Commit Graph

2366 Commits

Author SHA1 Message Date
Anthony Sottile
83e64e2071 Merge pull request #2673 from pre-commit/split-util
add pre_commit.yaml module
2023-01-02 19:15:57 -05:00
Anthony Sottile
e1567b6148 Merge pull request #2674 from pre-commit/revert-2671-simplify-state
Revert "simplify install state"
2023-01-02 19:09:16 -05:00
Anthony Sottile
8529a0c1d3 add pre_commit.yaml module 2023-01-02 18:42:34 -05:00
Anthony Sottile
990643c1e0 Revert "simplify install state" 2023-01-02 18:39:42 -05:00
Anthony Sottile
978e26c544 Merge pull request #2671 from pre-commit/simplify-state
simplify install state
2023-01-02 17:30:43 -05:00
Anthony Sottile
0920cb33ee simplify install state
the additional bookkeeping has been unnecessary since b827694520

unfortunately this will cause a rebuild of all hooks in order to be
forward/backward compatible -- shrugs
2023-01-02 16:00:27 -05:00
Anthony Sottile
c787efd558 Merge pull request #2669 from pre-commit/env_dir
simplify environment_dir
2023-01-01 21:43:32 -05:00
Anthony Sottile
05c8911363 simplify environment_dir 2023-01-01 21:11:56 -05:00
Anthony Sottile
10f835c501 Merge pull request #2668 from pre-commit/clean-on-failure
move clean_path_on_failure out of each hook install
2023-01-01 20:31:02 -05:00
Anthony Sottile
d05b7888ab move clean_path_on_failure out of each hook install 2023-01-01 20:04:58 -05:00
Anthony Sottile
0224be8194 Merge pull request #2667 from pre-commit/env-dir-always-non-null
remove None overload for environment_dir
2023-01-01 19:52:48 -05:00
Anthony Sottile
3d09b66c6b Merge pull request #2666 from pre-commit/r-dont-use-src
avoid using hook.src in R language
2023-01-01 19:34:22 -05:00
Anthony Sottile
f0baffb01f remove None overload for environment_dir 2023-01-01 19:20:40 -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
Anthony Sottile
017fa5c0b8 Merge pull request #2665 from pre-commit/move-parse-version
move parse_version to pre_commit.clientlib
2023-01-01 17:51:11 -05:00
Anthony Sottile
0cec5bd6f0 Merge pull request #2664 from pre-commit/special-rmtree-no-longer-needed
special rmtree is not needed for TemporaryDirectory in 3.8+
2023-01-01 17:51:05 -05:00
Anthony Sottile
5425c754a0 move parse_version to pre_commit.clientlib 2023-01-01 17:17:00 -05:00
Anthony Sottile
0a0754e44a special rmtree is not needed for TemporaryDirectory in 3.8+ 2023-01-01 17:12:28 -05:00
Anthony Sottile
092e9a50ae Merge pull request #2662 from pre-commit/r-default-gha
r is installed by default on GHA
2022-12-30 01:10:13 -05:00
Anthony Sottile
cddaa0dddc r is installed by default on GHA 2022-12-29 23:48:34 -05:00
Anthony Sottile
21407882fe Merge pull request #2661 from pre-commit/gha
azure pipelines -> github actions
2022-12-29 22:48:25 -05:00
Anthony Sottile
887c5e1142 azure pipelines -> github actions 2022-12-29 22:18:31 -05:00
Anthony Sottile
848a73ed40 Merge pull request #2658 from pre-commit/remove-pre-commit-validate
remove pre-commit-validate-config and pre-commit-validate-manifest
2022-12-27 13:53:10 -05:00
Anthony Sottile
4a50859936 remove pre-commit-validate-config and pre-commit-validate-manifest 2022-12-27 13:05:30 -05:00
Anthony Sottile
d33df92add Merge pull request #2602 from pre-commit/mypy-modules-as-protocols
use modules as protocols
2022-12-27 13:04:48 -05:00
Anthony Sottile
def3fa3929 Merge pull request #2657 from pre-commit/remove-sha-support
remove support for sha to specify rev
2022-12-27 12:13:26 -05:00
Anthony Sottile
12a979ea75 Merge pull request #2656 from pre-commit/remove-list-format
remove support for top-level list format
2022-12-27 12:09:42 -05:00
Anthony Sottile
40e69ce8e3 use modules as protocols 2022-12-27 11:46:11 -05:00
Anthony Sottile
7daceb083b Merge pull request #2655 from pre-commit/drop-py37
drop python<3.8
2022-12-27 11:46:01 -05:00
Anthony Sottile
ff3150d58a remove support for sha to specify rev 2022-12-27 11:29:00 -05:00
Anthony Sottile
0024484f5b remove support for top-level list format 2022-12-27 11:15:45 -05:00
Anthony Sottile
524a236072 drop python<3.8 2022-12-27 11:10:31 -05:00
Anthony Sottile
40c5bdad65 v2.21.0 v2.21.0 2022-12-25 17:52:05 -05:00
Anthony Sottile
bb27ea32cd Merge pull request #2642 from rkm/fix/dotnet-nuget-config
dotnet: ignore nuget source during tool install
2022-12-21 15:04:41 -05:00
Ruairidh MacLeod
c38e0c7ba8 dotnet: ignore nuget source during tool install 2022-12-21 14:26:13 -05:00
Anthony Sottile
bce513fac6 Merge pull request #2641 from rkm/fix/dotnet-tool-prefix
fix for dotnet hooks with prefixes
2022-12-21 14:13:14 -05:00
Ruairidh MacLeod
e904628830 fix dotnet hooks with prefixes 2022-12-21 13:35:19 -05:00
Anthony Sottile
d7b8b123e6 Merge pull request #2646 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2022-12-19 20:49:15 -05:00
pre-commit-ci[bot]
94b6178906 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/mirrors-autopep8: v2.0.0 → v2.0.1](https://github.com/pre-commit/mirrors-autopep8/compare/v2.0.0...v2.0.1)
2022-12-20 00:30:07 +00:00
Anthony Sottile
b474a83463 Merge pull request #2643 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2022-12-12 21:22:38 -05:00
pre-commit-ci[bot]
a179808bfe [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/add-trailing-comma: v2.3.0 → v2.4.0](https://github.com/asottile/add-trailing-comma/compare/v2.3.0...v2.4.0)
- [github.com/asottile/pyupgrade: v3.3.0 → v3.3.1](https://github.com/asottile/pyupgrade/compare/v3.3.0...v3.3.1)
2022-12-13 00:40:31 +00:00
Anthony Sottile
3aa6206e4f Merge pull request #2605 from lorenzwalthert/r/fix-exe
Adapt extension of R executable depending on os
2022-12-12 14:28:54 -05:00
Anthony Sottile
04225fec72 Merge pull request #2628 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2022-12-12 13:45:07 -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
pre-commit-ci[bot]
6ab7fc25d5 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v3.2.2 → v3.3.0](https://github.com/asottile/pyupgrade/compare/v3.2.2...v3.3.0)
2022-12-12 13:21:08 -05:00
Anthony Sottile
f9b28cc2b0 Merge pull request #2634 from pre-commit/fix-ci
fix CI
2022-12-12 13:02:24 -05:00
Anthony Sottile
b00c31cf9e use a newer version of ruby which builds cleanly 2022-12-12 12:22:39 -05:00
Anthony Sottile
8cc3a6d8aa passenv is stupid anyway 2022-12-10 23:45:04 -05:00
Anthony Sottile
b92fe01755 force the -p branch to run for language: python under test 2022-12-10 23:33:20 -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