Commit graph

76 commits

Author SHA1 Message Date
gnought
da180668ab
Revert "add local tag in shallow clone"
This reverts commit 5c9f50b681.
2026-02-14 21:32:58 +08:00
gnought
5c9f50b681
add local tag in shallow clone 2026-02-14 01:42:13 +08:00
gnought
19b60a6b48
Revert "fetch tag pointing to HEAD in shallow clone"
This reverts commit c6b4874025.
2026-02-14 01:28:27 +08:00
gnought
c6b4874025
fetch tag pointing to HEAD in shallow clone 2026-02-07 00:42:58 +08:00
Anthony Sottile
66278a9a0b move logic for gc back to commands.gc 2025-11-19 14:32:09 -05:00
Anthony Sottile
d5c273a2ba refactor gc into store
this will make refactoring this easier later and limits the api surface of Store
2025-11-09 17:03:43 -05:00
anthony sottile
f415f6c4d7 py310+
Committed via https://github.com/asottile/all-repos
2025-10-09 17:44:05 -04:00
Anthony Sottile
d31722386e add warning for deprecates stages for remote repos on init 2024-09-30 20:41:50 -04:00
pre-commit-ci[bot]
917e2102be [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-07-29 21:59:19 +00:00
Anthony Sottile
7f15dc75ee python3.9+ 2023-10-28 14:20:37 -04:00
Anthony Sottile
a631abdabf remove sorting for repo key for additional_deps
in other languages this order can matter (such as ruby)
2023-02-22 20:31:14 -05:00
Anthony Sottile
f1b5f66374 test conda language directly 2023-01-17 13:05:49 -05:00
Anthony Sottile
37685a7f42 the local repo no longer needs to be a git repo 2023-01-15 09:56:30 -05: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
Matt Layman
3f8be7400d Add naive and untested version of Lua language support. 2022-01-17 13:43:38 -05:00
Anthony Sottile
f8e21cb78b add support for dart as a hook language 2021-08-29 08:57:56 -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
b8fff8c508 Avoid warnings with R hooks when renv version don't match 2021-05-04 18:56:43 -07:00
Lorenz
f1502119a2 add support for R via renv 2021-03-07 13:58:14 -08:00
Anthony Sottile
79b098c409 fix atomic file replace on windows 2020-08-23 10:18:59 -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
4c154c3019 Use the real path of the cache root 2020-05-08 14:22:57 -07:00
Ville Skyttä
e2ed73209a Add dummy go.mod for local "empty" installs 2020-05-02 21:02:36 +03:00
Ville Skyttä
04471f7d97 Add perl additional dependencies test 2020-02-01 16:13:01 +02:00
Anthony Sottile
2a9893d0f0 mkdirp -> os.makedirs(..., exist_ok=True) 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
327ed924a3 Add types to pre-commit 2020-01-12 10:15:01 -08:00
Anthony Sottile
30c1e8289f upgrade hooks, pyupgrade pre-commit 2020-01-12 09:27:04 -08:00
Uwe L. Korn
4ff23b4eab Support for conda as a language 2019-12-20 18:43:59 -08:00
Anthony Sottile
8ff880faa6 Fix rare first-run race with creation of pre-commit directory 2019-10-28 14:56:03 -07:00
Anthony Sottile
f612aeb22b Split out cmd_output_b 2019-10-06 15:16:47 -07:00
Anthony Sottile
73250ff4e3 Fix autoupdate to always use non-shallow clone 2019-07-20 14:59:49 -07:00
Anthony Sottile
01653b8077 Fix shallow fetch by checking out FETCH_HEAD 2019-07-07 22:10:32 -07:00
Anthony Sottile
eab24f3e48 Fix full clone + non-mainline tag 2019-04-16 10:30:05 -07:00
DanielChabrowski
ab1df03418 Ignore shallow clone coverage on appveyor
Appveyor uses old version of git so shallow clone
always fails and lines 150-151 are not executed.
2019-03-16 00:16:42 +01:00
DanielChabrowski
a170e60daa Remove protocol.version 1 shallow cloning 2019-03-15 23:46:35 +01:00
Anthony Sottile
ec2e15f086 pre-commit run --all-files 2019-03-14 18:32:27 -07:00
DanielChabrowski
960bcc9614 Fix relative path repos 2019-03-09 23:56:37 +01:00
DanielChabrowski
b920f3cc6b Reuse the directory for cloning 2019-03-09 22:59:56 +01:00
DanielChabrowski
e74253d2de Allow shallow cloning 2019-03-03 01:35:53 +01:00
Anthony Sottile
9e34e6e316 pre-commit gc 2019-01-02 19:07:23 -08:00
Anthony Sottile
bdc58cc33f Teach pre-commit try-repo to clone uncommitted changes 2019-01-01 15:01:36 -08:00
Anthony Sottile
9f60561d6f Replace resources with importlib_resources 2018-10-14 14:37:35 -07:00
Anthony Sottile
b87c4fd8cc Remove more properties from Runner 2018-07-01 19:49:15 -07:00
Anthony Sottile
c01ffc83f8 Separate store from runner 2018-06-29 22:35:53 -07:00
Anthony Sottile
af93bec4fd Fix regression: try-repo from relative path 2018-03-17 20:02:06 -07:00
Anthony Sottile
96e9d1b758 Restore git 1.8 support 2018-03-12 14:36:07 -07:00
Anthony Sottile
29033f10ca Move cwd() to tests-only 2018-02-24 16:44:59 -08:00
Anthony Sottile
b827694520 Each set of additional dependencies gets its own env 2018-02-24 15:28:43 -08:00
Anthony Sottile
5a4dc0ce30 https-ify links
- A lot of http links loaded fine on https
- pre-commit.com is now loadable on https via cloudflare
2018-01-13 18:17:54 -08:00