1
0
mirror of https://github.com/j178/prek.git synced 2026-04-03 17:34:03 +02:00
Commit Graph

187 Commits

Author SHA1 Message Date
Shaan Majid
651a7f29fb ci: remove setup-swift action, skip Swift tests on Windows (#1478) 2026-01-27 07:58:02 +08:00
renovate[bot]
b6d44a9453 Update GitHub Actions (#1479) 2026-01-27 07:48:02 +08:00
Jo
ca1d4b51ed Use prek-ci-bot to post comments on PR (#1476)
I made a little GitHub bot (https://github.com/j178/prek-ci-bot) and
deployed it on Vercel. It downloads CI artifacts and posts comments on
PRs. Now that it works, we can get rid of that risky `on: workflow_run`
trigger.
2026-01-26 20:27:19 +08:00
Jo
2bb96c50d9 Require .pre-commit-config.yaml and log file in bug report (#1469)
Make the attachment of configuration and log files mandatory in the bug
report template.
2026-01-24 15:18:02 +08:00
Shaan Majid
e4d3dfd10a Add language: swift support (#1463)
* feat(swift): add Swift language support

Implement Swift language support for prek:
- Query swift executable and parse version from `swift --version`
- Handle both macOS (Apple Swift) and Linux version formats
- Normalize versions without patch component (e.g., "6.1" -> "6.1.0")
- Handle pre-release versions (e.g., "6.2-dev")
- Build Package.swift repos with `swift build -c release`
- Use `swift build --show-bin-path` to resolve target-specific bin directory
- Add built binaries to PATH when running hooks
- Health check verifies swift executable still exists

Include unit tests for version parsing covering:
- macOS format with swift-driver prefix
- Linux format
- Multiline output handling
- Versions without patch component
- Development/nightly versions
- Invalid input handling

* test(swift): add Swift language tests

* docs(swift): mark Swift as supported in language documentation

* ci: stabilize swift toolchain setup across platforms

- pin Swift version in env to keep CI deterministic\n- use SwiftyLab/setup-swift on Windows where swift-actions fails\n- install Swift on macOS and reset TOOLCHAINS back to Xcode\n- force CC/CXX/SDKROOT from Xcode so Ruby native gems compile\n\nThis keeps Swift hooks available while restoring Xcode's clang/SDK,\nwhich avoids msgpack native extension failures on macOS.
2026-01-23 11:28:18 +08:00
renovate[bot]
b7ee2dfeb8 Update GitHub Actions (#1460) 2026-01-22 23:12:34 +08:00
Jo
f10484a4af Pin maturin version (#1456) 2026-01-22 14:54:49 +08:00
Jo
b1e8c5e500 Fix doc build command in publish-docs (#1455) 2026-01-22 14:41:24 +08:00
Jo
2a7d898a9c Bump uv versions 2026-01-22 14:32:20 +08:00
Jo
f651521aea Fix docs build command in publish-docs 2026-01-22 12:03:54 +08:00
Jo
720c7cb732 Use git ls-remote --tags to list bun versions (#1439) 2026-01-22 11:05:41 +08:00
Jo
c34c41e384 Set GITHUB_TOKEN when running tests (#1426) 2026-01-22 11:05:41 +08:00
Shaan Majid
8d464397e6 Add language: bun support (#1411)
* feat(bun): add Bun language support

* test(bun): add integration tests for Bun language support

Add three integration tests covering the key functionality:
- basic_bun: simple hook execution using bun -e
- additional_dependencies: verify deps installed via bunx cowsay
- language_version: test version specification with language_version: "1"

The additional_dependencies test runs twice to verify health_check and
cache reuse works correctly.

* docs: add Bun to supported languages documentation

- Add Bun to toolchain list in README features section
- Add Bun to managed toolchain downloads list in languages.md
- Add full Bun language section with version format documentation

* ci: add Bun setup to test jobs

* feat(bun): use GITHUB_TOKEN to avoid API rate limits

When listing Bun versions from GitHub releases, use the GITHUB_TOKEN
environment variable if available to authenticate requests. This
increases the rate limit from 60 to 5,000 requests/hour.

GITHUB_TOKEN is automatically set in GitHub Actions workflows.

* fix(bun): use consistent bin_dir path on all platforms

Bun installs global packages to $BUN_INSTALL/bin/ on all platforms,
so bin_dir should always return prefix/bin. The Windows special case
was incorrectly copied from Node (which uses npm's different install
structure).

* Add toolchain download test

* Add tests

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2026-01-22 11:05:41 +08:00
Matthias Schoettle
0784ddfaea Add mdformat pre-commit hook (#1416) 2026-01-20 11:26:37 +08:00
Jo
ea9a51161c Set cargo related env vars (#1405) 2026-01-19 13:41:43 +08:00
Jo
dfbea266fd Remove #[cfg(unix)] gate on generating cli reference (#1402)
* Remove `#[cfg(unix)]` gate on generating cli reference

* Tweak

* Debug

* Debug

* Normalized eol

* Debug

* Add gitattributes

* Final
2026-01-19 13:37:34 +08:00
Jo
97e5b348f1 Add copilot instructions (#1404) 2026-01-19 13:17:51 +08:00
Ülgen Sarıkavak
37d6c10fd1 Update deprecated key (#1397)
> matchPaths and matchFiles are now combined into matchFileNames, supporting exact match and glob-only. The "any string match" functionality of matchPaths is now removed

https://github.com/renovatebot/renovate/releases/tag/36.0.0
2026-01-18 21:36:01 +08:00
Ülgen Sarıkavak
7c8cdf7e5e Enable Renovate's ":configMigration" preset (#1394)
Found that the config needs to be migrated, while testing https://github.com/renovatebot/pre-commit-hooks
2026-01-18 21:11:31 +08:00
Jo
8faa42c091 Add nextest partitioning for Windows tests (#1389)
* Add nextest partitioning for Windows tests

* Fix

* Fix

* Fix

* Fix

* Disable optimize for fast-build

* Fix integration bin name

* Fix

* Fix

* Try fix

* Debug

* Fix

* Fix path substitute

* Fix
2026-01-18 20:37:53 +08:00
Jo
56180f3d29 Build binaries using minimal-size profile (#1376) 2026-01-16 21:14:38 +08:00
Jo
e317d70939 Tweak CI (#1369) 2026-01-16 14:53:38 +08:00
Jo
fc54f145d9 Fix some tests isolation when git commit (#1365)
* Fix some tests isolation when `git commit`

* Fix rust cache save
2026-01-16 11:27:52 +08:00
renovate[bot]
7fd2da8a77 Update taiki-e/install-action action to v2.65.11 (#1364) 2026-01-15 22:43:07 +08:00
Jo
34fb8f3ecc Refactor CI workflow and cargo profile (#1361) 2026-01-15 16:54:52 +08:00
Jo
f929d78c6e Add a renovate rule to update github actions version in README (#1360) 2026-01-15 11:43:37 +08:00
renovate[bot]
f1533e1497 Update GitHub Actions (#1357) 2026-01-15 11:18:30 +08:00
renovate[bot]
541df23466 Update actions/upload-artifact action to v6 (#1359) 2026-01-15 11:18:17 +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
c1ec7c8dd4 Add an ecosystem test for CPython (#1336) 2026-01-12 19:15:55 +08:00
Jo
50684fbdcf Drop powerpc64 wheels (#1319) 2026-01-07 22:05:42 +08:00
renovate[bot]
754c89c0a6 Update GitHub Actions (#1297) 2026-01-03 20:10:10 +08:00
renovate[bot]
b300081a01 Update GitHub Actions (#1296) 2026-01-03 16:30:03 +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
d96e4d64ed Fix "Check tag consistency" in build-docker workflow (#1266) 2025-12-23 11:33:46 +08:00
Jo
9e7b674c7f Fix docker tags (#1257) 2025-12-22 11:30:13 +08:00
Jo
02414edb56 Render changelog in document site (#1248)
# Conflicts:
#	.github/workflows/release.yml
2025-12-22 00:49:01 +08:00
Jo
885812e7ca Fix build-docker job permission (#1255) 2025-12-22 00:41:06 +08:00
Jo
997c89c268 Build and publish docker image to ghcr.io/j178/prek (#1253) 2025-12-22 00:26:49 +08:00
Jo
9dd875d8c2 Bump taiki-e/install-action to v2.63.3 (#1230) 2025-12-15 22:40:05 +08:00
renovate[bot]
eebe0b5fab Update GitHub Actions (#1219) 2025-12-13 20:10:57 +08:00
Jo
adf92b0f1b Set renovate minimumReleaseAge to 14 days (#1189) 2025-12-04 14:46:46 +08:00
renovate[bot]
616c80531b Update GitHub Actions (#1166)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-01 11:28:31 +08:00
renovate[bot]
373ed413bc Update actions/checkout action to v6 (#1128) 2025-11-21 07:20:46 +08:00
Jo
f46e6f9011 Fix npmjs publish action 2025-11-16 19:44:28 +08:00
Jo
7e06cffa70 Bump version to 0.2.15-alpha.3 (#1091)
* Fix release

* Bump version to 0.2.15-alpha.3
2025-11-16 19:26:06 +08:00
Jo
8292d951b8 Prepare for publishing to crates.io (#1088)
* Add descriptions for crates

* Add version

# Conflicts:
#	Cargo.toml

* Add action

* Fix
2025-11-16 17:36:51 +08:00
renovate[bot]
16edd6479a Update dependency node to v24 (#1080)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-15 13:31:52 +08:00
renovate[bot]
2c29a40b3b Update GitHub Actions (#1078) 2025-11-15 13:13:43 +08:00
Jo
2765bdee15 Save rust cache for CI jobs on main only (#1056)
Take inspiration from https://github.com/astral-sh/ruff/pull/21359
2025-11-10 17:39:59 +08:00