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

701 Commits

Author SHA1 Message Date
renovate[bot] f57d8ba59c Update astral-sh/setup-uv action to v6.7.0 (#740)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 10:46:43 +08:00
renovate[bot] a9871015a6 Update Rust crate serde_json to v1.0.145 (#737)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 10:46:25 +08:00
renovate[bot] e060e2ea42 Update Rust crate serde_ignored to v0.1.14 (#736)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 10:46:11 +08:00
renovate[bot] a560ba5572 Update Rust crate serde_stacker to v0.1.13 (#738)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 10:44:40 +08:00
renovate[bot] efbb1a1ba9 Update Rust crate serde to v1.0.223 (#735)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 10:44:09 +08:00
renovate[bot] 6133c95845 Update Rust crate semver to v1.0.27 (#734)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 10:43:47 +08:00
Jo 8697098dee Update benchmarks (#728) 2025-09-14 13:31:32 +08:00
arielle 240063c4af Fix typo in language-version to language_version (#727)
Checking the pre-commit documentation and the source code of prek will reveal that this is named language_version rather than language-version. 

It's a tiny nit but a little confusing otherwise
2025-09-14 13:29:16 +08:00
Jo e3eeb39fd1 Bump version to 0.2.0 (#726) v0.2.0 2025-09-14 12:43:16 +08:00
Jo 8858c5b27f Enable go mod cache for faster go related tests (#725)
* Enable go mod cache for faster go related tests

* Add node cache
2025-09-14 12:22:08 +08:00
Jo be6674f6dd Enable more aggressive optimizations for release (#724) 2025-09-14 11:58:23 +08:00
arielle 9dba23c485 fix: support py38 for pygrep (#723) 2025-09-14 11:34:00 +08:00
Kushagra Udai a3d5d12d0e Fix installation on fish and with missing tags (#721) 2025-09-13 08:52:32 +08:00
Jo 83d170020a Bump cargo-dist to 0.30 (#720) 2025-09-12 21:54:30 +08:00
Jo 2090c5d363 Truncate log file each time (#717) 2025-09-11 20:32:37 +08:00
Jo 6e6374dd13 Fix hook-impl don't run hooks when specified allow missing config (#716)
Closes #715
2025-09-11 16:46:07 +08:00
Jo b583078145 Fix parsing of tag describe for prerelease versions (#714) 2025-09-11 13:17:45 +08:00
Kushagra Udai 4e9faf20ba Speed up check_toml (#713)
* Speed up check_toml, closes #710

* fmt

* codecov

* fmt
2025-09-11 11:22:40 +08:00
Jo 98e0b71a61 Bump version to 0.2.0-alpha.5 (#711) v0.2.0-alpha.5 2025-09-11 10:52:26 +08:00
Jo edfb28011b Note that Rust 1.89 is required to build prek (#712)
Closes https://github.com/j178/prek/issues/709
2025-09-11 10:47:59 +08:00
Kushagra Udai 4b89c003f2 Add built in byte-order-marker fixer (#700)
* Add built in byte-order-marker fixer

* fmt

* feedback

* fmt
2025-09-11 10:39:42 +08:00
Jo 3d6f9f1d5a Fix trailing-whitespace & mixed-line-ending write file path (#708) 2025-09-10 23:46:27 +08:00
Jo 6f0a7da41b Generate cli reference (#707)
* Generate cli reference

* Fix lint
2025-09-10 22:05:05 +08:00
Jo cf81ca3644 Use bigger buffer size for fixing trailing whitespace (#705) 2025-09-10 19:31:36 +08:00
Jo cbddcb9fb6 Add docs about configuration (#703) 2025-09-10 15:45:52 +08:00
Jo 2ebf0084fa Add docs about debugging (#702) 2025-09-10 15:16:34 +08:00
Jo 56bcab7337 Fix file path handling for meta hooks in workspace mode (#699) 2025-09-10 11:39:14 +08:00
Jo d3825a1fad Bump version to 0.2.0-alpha.4 (#696)
* Revert "Remove setup-dev-drive from Windows CI (#674)"

This reverts commit f3111a4d29.

* Bump version to 0.2.0-alpha.4
v0.2.0-alpha.4
2025-09-10 00:44:20 +08:00
Jo 8c17139379 Revert "Remove setup-dev-drive from Windows CI (#674)" (#695)
This reverts commit f3111a4d29.
2025-09-10 00:34:43 +08:00
Jo 2e6ebfda23 Do not set GOROOT for system install Go when running go hooks (#694) 2025-09-10 00:31:20 +08:00
Jo 736768b4f6 Support selectors in prek install/install-hooks/hook-impl (#683)
* .

* Support selectors in `prek install`

* Support `prek install-hooks` too

* Add tests
2025-09-09 23:39:41 +08:00
Aravindan M 62438bc9dc Fix Docker image and Go version test issues for portability (#692)
* Update docker_image.rs

* Update golang.rs

* Update tests/languages/golang.rs

* Fix clippy

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-09-09 22:36:05 +08:00
Jo 9eb3a23d74 Fix check_toml and check_yaml in workspace mode (#688)
* Fix `check_toml` and `check_yaml` in workspace mode

Fixes #686

* Add test
2025-09-09 22:22:56 +08:00
Jo d65723522f Ignore two node flaky tests for now (#691) 2025-09-09 22:03:03 +08:00
Ed Page 5bd4922ecb refactor(cli): Clean up usage of clap (#689)
* refactor(cli): Remove unused field values

The ArgAction is sufficient for specifying behavior; the type isn't
needed.

* refactor(cli): Remove unused attributes
2025-09-09 21:50:38 +08:00
Ed Page 89e948b5fa docs(manifest): Correctly specify metadata for all packages (#687)
* docs: Set repository on every member

* docs: Specify license as MIT

`license-file` is meant for custom licenses and not for specifying the
text of a standard license.

See also
- rust-lang/cargo#12053
- rust-lang/cargo#5933

* docs: Specify the license for all packages
2025-09-09 21:49:52 +08:00
Jo 7fc8d4588d Add docs about TODOs (#679) 2025-09-09 14:46:20 +08:00
Jo cd2cb80c9f Add docs about builtin hooks (#678) 2025-09-09 11:59:43 +08:00
Jo 2a67f7ce5a Ignore config file from hidden directory (#677) 2025-09-08 20:23:16 +08:00
Jo bc1b423a94 Bring back .pre-commit-config.yml support (#676)
* Bring back `.pre-commit-config.yml` support

* Fix snaps
2025-09-08 19:39:46 +08:00
Jo f3111a4d29 Remove setup-dev-drive from Windows CI (#674) 2025-09-08 16:42:06 +08:00
Jo 9cd1d3d969 Ignore pty from code coverage (#672) 2025-09-08 15:59:07 +08:00
Jo d5f2d6b303 Bump version to 0.2.0-alpha.3 (#671) v0.2.0-alpha.3 2025-09-08 15:21:24 +08:00
Luiz Otavio Vilas Boas Oliveira 4606abccc0 Split the instructions to install via terminal (#670) 2025-09-08 15:18:58 +08:00
Jo c9d4610bc7 Update README.md (#669)
Correct formatting for emphasis and summary in README.
2025-09-08 13:46:47 +08:00
renovate[bot] 252c5e0484 Update dependency uv to v0.8.15 (#652)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-08 13:39:26 +08:00
Jo c5d29e701a Run setup python test in the same job with cargo test (#668)
* Run `setup python test` in the same job with `cargo test`

* Fix

* Fix

* Improve
2025-09-08 13:20:20 +08:00
Jo de3d015aee Add Codecov badge to README (#667)
Added Codecov badge to README for coverage tracking.
2025-09-08 11:42:40 +08:00
renovate[bot] 3e86bb0ca3 Update codecov/codecov-action action to v5.5.1 (#666)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-08 11:32:14 +08:00
Jo 7f29846a89 Add cargo-llvm-cov for code coverage (#660)
* Add `cargo-llvm-cov` for code coverage

* Fix

* Fix
2025-09-08 11:28:07 +08:00