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

166 Commits

Author SHA1 Message Date
renovate[bot]
ad5c374032 Update Rust crate etcetera to 0.11.0 (#1002)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-31 15:23:06 +08:00
Jo
5ae43ab61e Use lazy_regex for compile time regex checking (#996) 2025-10-30 21:26:28 +08:00
Jo
8470e0424a Remove hotpath profiling (#991)
The profiling isn’t very useful right now - it’s way too sensitive to noise. What we really need is proper benchmarking that runs multiple times to filter out all that noise, like what you get with https://codspeed.io/ or https://bencher.dev/
2025-10-29 21:11:23 +08:00
Jo
a1b6d2821e Refactor bloat-check and hotpath workflow (#990)
* Refactor `bloat-check` and `hotpath` workflow

* Use faster profiling  profile

* Fix template injection issue

* Tweak
2025-10-29 17:00:38 +08:00
Louis Maddox
65a2fe22a6 Profile latency and allocations with hotpath (#956)
* perf(hotpath): profile prek run on its own repo

* Combine pr comments

* Fix path

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-10-28 17:41:47 +08:00
Jo
a18d363b7e Refactor identify using smallvec (#982)
```console
❯ hyperfine --warmup 3 'prek run -a trailing-whitespace' './target/release/prek run -a trailing-whitespace'
Benchmark 1: prek run -a trailing-whitespace
  Time (mean ± σ):      56.6 ms ±   7.8 ms    [User: 28.1 ms, System: 35.7 ms]
  Range (min … max):    48.0 ms …  73.0 ms    37 runs

Benchmark 2: ./target/release/prek run -a trailing-whitespace
  Time (mean ± σ):      51.0 ms ±   2.6 ms    [User: 28.1 ms, System: 35.3 ms]
  Range (min … max):    48.1 ms …  61.5 ms    46 runs

Summary
  ./target/release/prek run -a trailing-whitespace ran
    1.11 ± 0.16 times faster than prek run -a trailing-whitespace
```
2025-10-28 16:16:31 +08:00
Jo
15ef28aee9 Bump version to 0.2.12 (#978) 2025-10-27 20:11:46 +08:00
Steven Taylor
7161581362 Allow using system trusted store by PREK_NATIVE_TLS (#959) 2025-10-26 03:56:02 +08:00
Jo
c2f0468b62 Bump version to 0.2.11 (#962) 2025-10-24 20:09:59 +08:00
Jo
9e0e9b3ad8 Bump version to 0.2.10 (#922) 2025-10-18 20:48:01 +08:00
Louis Maddox
bbdac782d6 Implement check-xml as builtin hook (#894)
Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-10-17 17:12:15 +08:00
Jo
565c5e26e4 Bump version to 0.2.9 (#903) 2025-10-16 18:45:15 +08:00
Louis Maddox
6d8579fdf4 feat: make package cargo binstallable (#882) 2025-10-15 06:33:38 +08:00
Jo
1205b6ddb6 Add tracking issue for language support (#879) 2025-10-14 20:42:29 +08:00
Jo
e924c4ba50 Try release again (#878) 2025-10-14 15:16:08 +08:00
Jo
45882a6c0e Bump version to 0.2.7 (#877) 2025-10-14 14:24:03 +08:00
Jo
2a226a3d13 Bump version to 0.2.6 (#875) 2025-10-14 13:16:49 +08:00
Jo
33864f24bc Bump version to 0.2.5 (#864) 2025-10-10 22:11:13 +08:00
Jo
38ea52040d Bump version to 0.2.4 (#848) 2025-10-07 16:59:27 +08:00
Jo
7fe75a86da Bump version to 0.2.3 (#818) 2025-09-29 16:48:36 +08:00
Jo
eef84cf8c5 Bump version to 0.2.2 (#802) 2025-09-26 22:56:32 +08:00
Jo
0ba14e2f1d Add support for specifying PREK_UV_SOURCE (#766)
* Add support for specifying `PREK_UV_SOURCE`

* Fix

* Improve

* debug

* Fix
2025-09-20 18:24:35 +08:00
Jo
224d7e6dae Bump version to 0.2.1 (#749) 2025-09-15 23:01:14 +08:00
Jo
022ef1824c auto-update: prefer tags that are most similar to the current version (#719)
* auto-update: prefer tags that are most similar to the current version

* Add test
2025-09-15 21:35:44 +08:00
Jo
e3eeb39fd1 Bump version to 0.2.0 (#726) 2025-09-14 12:43:16 +08:00
Jo
be6674f6dd Enable more aggressive optimizations for release (#724) 2025-09-14 11:58:23 +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) 2025-09-11 10:52:26 +08:00
Jo
6f0a7da41b Generate cli reference (#707)
* Generate cli reference

* Fix lint
2025-09-10 22:05:05 +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
2025-09-10 00:44:20 +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
d5f2d6b303 Bump version to 0.2.0-alpha.3 (#671) 2025-09-08 15:21:24 +08:00
Jo
e404b618cf Bump version to 0.2.0-alpha.2 (re-release of 0.2.0-alpha.1) (#642) 2025-09-07 16:01:00 +08:00
Jo
2ad6d1b2da Bump version to 0.2.0-alpha.1 (#640)
* Bump version to 0.2.0a1

* Fix version regex

* Update doc
2025-09-07 15:24:27 +08:00
Jo
e9fc08bc6b Implement project and hook selector (#623)
* selection

* .

* complete

* rewrite

* Fix

* Fix docs

* Update doc

* Fix single config mode

* Improve

* Fix doc

* Fixes and tweaks

* Fix tests

* Fixes and tests

* Use path clean instead of canonicalized
2025-09-06 16:44:22 +08:00
Jo
a5a1b3b2b0 Support multiple .pre-commit-config.yaml in a workspace (monorepo mode) (#481)
* Remove color from trace log

Since `tracing-subscriber 0.3.20`, ANSI codes will be escaped so that color can not be shown in log. 4c52ca5266

* Refactor project constructure

# Conflicts:
#	src/cli/run/run.rs

* .

# Conflicts:
#	src/workspace.rs

# Conflicts:
#	src/workspace.rs

# Conflicts:
#	src/workspace.rs

.

# Conflicts:
#	src/git.rs

# Conflicts:
#	src/git.rs

# Conflicts:
#	src/git.rs
#	src/languages/script.rs

Support multiple `.pre-commit-connfig.yaml` in a workspace (monorepo mode)

.

.

Make it compile

Fix

.

.

.

Fix

Fix

Fix

.

.

.

# Conflicts:
#	src/builtin/pre_commit_hooks/fix_trailing_whitespace.rs
#	src/builtin/pre_commit_hooks/mod.rs
#	src/hook.rs
#	src/languages/docker.rs
#	src/languages/docker_image.rs
#	src/languages/golang/golang.rs
#	src/languages/node/node.rs
#	src/languages/python/python.rs
#	src/languages/system.rs
#	src/run.rs

* Refactor

* Fix

* .

* Fix `--config FILE`

* Add docs

* Misc

* Fix
# Conflicts:
#	README.md
2025-09-06 16:44:22 +08:00
Jo
2092da67dc Bump version to 0.1.6 (#617) 2025-09-03 20:01:08 +08:00
Jo
946e80e962 Bump version to 0.1.5 (#599) 2025-09-02 02:49:32 +08:00
Jo
dfe2a67467 Bump tracing-subscriber to 0.3.20 (#567) 2025-08-30 07:21:10 +08:00
Jo
fafc56acd1 Move pty to lib (#563)
* Move `pty` to `lib`

* Fix windows

* Fix Windows

* Fix Windows
2025-08-27 13:21:45 +08:00
Jo
1e14466240 Bump version to 0.1.4 (#561) 2025-08-27 00:18:54 +08:00
Jo
2a73f94590 Move typos configuration into Cargo.toml (#560) 2025-08-26 23:54:03 +08:00
Jo
78f785ad64 Bump version to 0.1.3 (#541) 2025-08-25 17:35:36 +08:00
Jo
c5fb6ec7f6 Support PEP 723 scripts for Python hooks (#529)
* Support PEP723 scripts for local Python hooks

Fix

Debug windows

debug

Fix

# Conflicts:
#	tests/languages/python.rs

* Fix
2025-08-25 17:07:48 +08:00
Jo
e072d4f67d Bump version to 0.1.2 (#526) 2025-08-21 12:04:53 +08:00
Jo
cdd2319b60 Bump version to 0.1.1 (#519) 2025-08-20 19:17:49 +08:00
Jo
665bb8116d Bump version to 0.1.0 (#515) 2025-08-20 18:41:13 +08:00
Jo
2fca955c38 Fix stack overflow when checking deeply nested json (#507) 2025-08-19 20:38:48 +08:00
Jo
32174ff029 Bump version to 0.0.29 (#490)
* Bump version to 0.0.29

* Update
2025-08-18 23:01:02 +08:00
Jo
f2f7ba0e5a Bump version to 0.0.28 (#485) 2025-08-18 14:48:49 +08:00