1
0
mirror of https://github.com/j178/prek.git synced 2026-04-25 02:11:36 +02:00
Commit Graph

1204 Commits

Author SHA1 Message Date
Jo 2e1ffa313f Fix missing commit hash from version info (#1352) 2026-01-14 16:02:07 +08:00
Ülgen Sarıkavak 328534fc8b Bump actions/checkout version in docs (#1351)
https://github.com/actions/checkout/releases/tag/v6.0.0
2026-01-14 10:54:40 +08:00
Jo 660873cf32 Add home-assistant/core to the users of prek (#1350) 2026-01-13 23:50:18 +08:00
Jo 4b7521bc96 Bump version to 0.2.28 (#1349) v0.2.28 2026-01-13 22:57:14 +08:00
Jo 44f0e05d1b More accurate command line length limit calculation (#1348) 2026-01-13 22:46:41 +08:00
yihong a86ff877bf Raise SC_ARG_MAX upper limit (#1347)
* fix: close issue #1337 by make SC_ARG_MAX count right

Signed-off-by: yihong0618 <zouzou0208@gmail.com>

* fix: make clippy happy

Signed-off-by: yihong0618 <zouzou0208@gmail.com>

* Tweak

* Tweak

---------

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2026-01-13 22:15:24 +08:00
Jo fb857e62f5 Build and upload binaries in CI (#1340)
* Debug command line length

* Build binaries

* Revert "Debug command line length"

This reverts commit d17610dc0c.
2026-01-13 17:12:27 +08:00
Jo dd12db2735 Avoid rewriting if config is up-to-date (#1346) 2026-01-13 14:18:16 +08:00
Matthew Mckee 7f396d1ccb Add ty to the users of prek (#1342) 2026-01-13 02:39:16 +08:00
Copilot c48699a526 Document UV environment variable inheritance in prek (#1339)
* Initial plan

* Document UV environment variable impact in diff.md

Co-authored-by: j178 <10510431+j178@users.noreply.github.com>

* Use mkdocs-material warning callout for UV environment variables

Co-authored-by: j178 <10510431+j178@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: j178 <10510431+j178@users.noreply.github.com>
2026-01-12 20:47:58 +08:00
Jo b99d05c440 Complete configuration document (#1338) 2026-01-12 20:34:11 +08:00
Jo f686b08ca2 Avoid running git diff for skipped hooks (#1335)
* .

* Avoid running `git diff` for skipped hooks
2026-01-12 19:28:26 +08:00
Jo c1ec7c8dd4 Add an ecosystem test for CPython (#1336) 2026-01-12 19:15:55 +08:00
Jo a591fa6db4 Add ruff to the users of prek (#1334) 2026-01-12 11:25:57 +08:00
Jo d76bc39d28 Use /bin/sh in generated git hook scripts (#1333)
* Use `/bin/sh` in generated git hook scripts

* Compatible with /bin/sh
2026-01-12 11:25:34 +08:00
Jo 8b1e068c4e Use full logo url in README 2026-01-09 11:52:44 +08:00
dependabot[bot] 11b9171b83 Bump urllib3 from 2.6.0 to 2.6.3 in /docs (#1324)
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.6.0 to 2.6.3.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.6.0...2.6.3)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-version: 2.6.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-08 15:37:07 +08:00
Jo 549f3ae299 Remove background from logo (#1322) 2026-01-07 22:45:33 +08:00
Jo a72a3cc3df Bump version to 0.2.27 (#1321) v0.2.27 2026-01-07 22:14:04 +08:00
Jo 50684fbdcf Drop powerpc64 wheels (#1319) 2026-01-07 22:05:42 +08:00
Jo e255e88d37 Bump version to 0.2.26 (#1318) 2026-01-07 20:49:55 +08:00
Jo 0d88fc098e Exit with success if no hooks match the hook stage (#1317) 2026-01-07 19:32:42 +08:00
Branch Vincent d0c33b1833 Support apple's container for docker lang (#1306)
* Support apple's `container` for docker lang

* Tweak

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2026-01-07 16:09:05 +08:00
Jo d07b1916ae Skip cookiecutter template directories like {{cookiecutter.project_slug}} during project discovery (#1316)
Fixes #1315
Updates #1044
2026-01-07 15:53:02 +08:00
yihong 59c03ff208 untar: disallow external symlinks (#1314)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2026-01-06 15:17:20 +08:00
Loganaden Velvindron 3b832c71f9 Fix "TARmageddon" vulnerability CVE-2025-62518 (#1313)
https://nvd.nist.gov/vuln/detail/CVE-2025-62518
2026-01-05 19:18:34 +08:00
crayon b48ee92ac6 Add ZhuoZhuoCrayon/throttled-py to the list of projects using prek (#1298)
Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2026-01-03 20:19:16 +08:00
Ülgen Sarıkavak 108f5985d1 Add python/cpython to users (#1308) 2026-01-03 20:16:31 +08:00
renovate[bot] 4033c80a97 Update dependency uv to v0.9.18 (#1295) 2026-01-03 20:16:03 +08:00
renovate[bot] 754c89c0a6 Update GitHub Actions (#1297) 2026-01-03 20:10:10 +08:00
Shogo Yamazaki f6542108c5 Fix Go template string to detect rootless podman (#1302) 2026-01-03 16:42:21 +08:00
renovate[bot] b300081a01 Update GitHub Actions (#1296) 2026-01-03 16:30:03 +08:00
Jo df913baafe Use global CONCURRENCY for repo clone (#1292) 2025-12-31 11:58:10 +08:00
Copilot c5f127090b Fix: Panic on overly long filenames instead of silently dropping files (#1287)
* Initial plan

* Fix: Panic on overly long filenames instead of silently dropping files

- Replace silent None return with explicit panic when a filename is too long
- Add detailed error message showing filename, sizes, and limits
- Add comprehensive unit tests to validate the panic behavior
- Prevents silent file skipping that could lead to incomplete checking

Co-authored-by: j178 <10510431+j178@users.noreply.github.com>

* Add bounds check before accessing filename in panic path

Add defensive bounds check to prevent potential index out of bounds
panic with unhelpful error message.

Co-authored-by: j178 <10510431+j178@users.noreply.github.com>

* Simplify panic message for overly long filenames

Changed from verbose multi-line message to simple single-line format:
"Filename `{}` ({} bytes) is too long to fit in command line"

Co-authored-by: j178 <10510431+j178@users.noreply.github.com>

* Simplify

* Simplify

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: j178 <10510431+j178@users.noreply.github.com>
2025-12-30 18:09:07 +08:00
Daniel Parks 0efd6370d7 Add env to set environment variables for hooks (#1279) (#1285)
* Add `env` to set environment variables for hooks (#1279)

This key is not supported by `pre-commit`.

* DO NOT MERGE: use my fork of prek-test-repos/script-hooks

* Update test

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-12-30 17:08:44 +08:00
yihong 68036c6167 docs: add user kimi-cli (#1286)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2025-12-29 10:35:40 +08:00
Jo 1856285aba Bump version to 0.2.25 (#1282)
* Bump version to 0.2.25

* Update JSON schema
v0.2.25
2025-12-27 00:36:49 +08:00
Jo e6f7fced91 Fix priority not applied for remote hooks (#1281) 2025-12-27 00:16:52 +08:00
Jo b78b627aa8 Rename remove_git_env to remove_git_envs (#1280) 2025-12-26 15:43:49 +08:00
Jo f010247ceb Use git cat-file -e in to check rev exist (#1277) 2025-12-25 11:01:18 +08:00
Jo 28df874c3f Use grouped code blocks in index.md (#1276) 2025-12-24 20:02:00 +08:00
Jo e2459fd1c6 Add fastapi/typer, fastapi/asyncer and django/djangoproject.com to the list of projects using prek (#1275) 2025-12-24 11:17:03 +08:00
Jo 4984a2fe68 Report config file parsing error in auto-update (#1274) 2025-12-24 11:07:34 +08:00
Branch Vincent b6d9638ca2 Unset GIT_DIR for auto-update (#1269)
* Unset `GIT_DIR` for auto-update

* Convert to integration test

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-12-23 17:47:00 +08:00
Jo ad5c0dfb6a Generate JSON schema for prek configuration (#1270)
* Generate JSON schema for prek configuration

* Fix schema for `Repo` enum

* Test in CI
2025-12-23 16:31:05 +08:00
Jo 5e1a4f1319 Fix README on crates.io (#1268) 2025-12-23 13:18:39 +08:00
Jo d96e4d64ed Fix "Check tag consistency" in build-docker workflow (#1266) v0.2.24 2025-12-23 11:33:46 +08:00
Jo 0278b59b76 Bump version to 0.2.24 (#1265) 2025-12-23 11:01:07 +08:00
Jo 19dcd5ce73 Respect GIT_DIR set by git (#1258)
* Respect `GIT_DIR` set by git

* test

* Set GIT_WORK_TREE

* Add test
2025-12-23 10:48:59 +08:00
Jo f3de2b2ba6 Ensure running uv pip install inside the remote repo path (#1262) 2025-12-23 00:56:02 +08:00