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

780 Commits

Author SHA1 Message Date
Jo 38ea52040d Bump version to 0.2.4 (#848) v0.2.4 2025-10-07 16:59:27 +08:00
Jo 7a17c4b677 Improve install message when installing for a sub-project (#847)
* Improve install message when installing for a sub-project

* Fix tests
2025-10-07 16:47:42 +08:00
Jo ade96745d5 Add a trace log when running builtin hook (#846) 2025-10-07 16:22:56 +08:00
renovate[bot] 9af102ae28 Update j178/prek-action action to v1.0.11 (#841) 2025-10-06 09:53:56 +08:00
Jo ad0441e76c Convert extension to lowercase before checking file tags (#839) 2025-10-06 01:49:37 +08:00
Jo b40a01c8f7 Optimize is_text_file (#838) 2025-10-06 01:28:29 +08:00
Jo 6c0cd3b7c8 Make prek auto-update --jobs default to 0 (which uses max available parallelism) (#833) 2025-10-01 23:03:56 +08:00
Jo 0dd84cd620 Improve language version download tests (#832) 2025-10-01 22:31:57 +08:00
Nyakku Shigure 88b1e796cd Allow run --files with zero args (#831) 2025-10-01 21:22:54 +08:00
renovate[bot] 1b86879736 Update j178/prek-action action to v1.0.10 (#830) 2025-10-01 20:05:32 +08:00
Nyakku Shigure 7b8cb627bd Support pass multiple files like prek run --files a b c d (#828) 2025-10-01 19:32:27 +08:00
Jo 1e9ccf01f4 Build s390x binary on stable again (#827) 2025-10-01 18:36:14 +08:00
Jo 59960410fa Add support for .prekignore to ignore directories from project discovery (#826) 2025-10-01 18:15:10 +08:00
Jo 0071a37f5e Add requests-cache to "Who is using prek" (#824) 2025-10-01 18:05:11 +08:00
Jo 5d32b2fe0e Use prek-action in CI lint job (#822) 2025-09-30 17:41:12 +08:00
renovate[bot] d4e9e2d152 Update dependency uv to v0.8.22 (#813)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-30 16:13:55 +08:00
Jo 9f62ec9cf9 Improve some trace log (#820) 2025-09-30 15:56:32 +08:00
dependabot[bot] 7678e623ab Bump mkdocs-include-markdown-plugin from 7.1.7 to 7.1.8 in /docs (#821)
Bumps [mkdocs-include-markdown-plugin](https://github.com/mondeja/mkdocs-include-markdown-plugin) from 7.1.7 to 7.1.8.
- [Release notes](https://github.com/mondeja/mkdocs-include-markdown-plugin/releases)
- [Commits](https://github.com/mondeja/mkdocs-include-markdown-plugin/compare/v7.1.7...v7.1.8)

---
updated-dependencies:
- dependency-name: mkdocs-include-markdown-plugin
  dependency-version: 7.1.8
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-30 15:56:17 +08:00
Jo 7fe75a86da Bump version to 0.2.3 (#818) v0.2.3 2025-09-29 16:48:36 +08:00
Jo 0adb26401d Add a global --log-file flag to specify the log file path (#817) 2025-09-29 16:30:48 +08:00
Jo 8392fcb08a Add a codecov configuration (#816) 2025-09-29 12:02:01 +08:00
Jo 1c425e43ad Implement hook health check (#798)
* Implement hook health check

* Add node health check

* Add health check for pygrep

* Add test
2025-09-29 10:47:14 +08:00
renovate[bot] 876f2b912d Update taiki-e/install-action action to v2.62.12 (#815)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-29 10:46:13 +08:00
renovate[bot] de13ec729d Update pre-commit hook crate-ci/typos to v1.36.3 (#814)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-29 10:44:54 +08:00
Jo 7402b1e774 Write fail entry into output directly (#811) 2025-09-28 17:35:30 +08:00
Jo 7551dab631 Update docs about uv in prek (#810) 2025-09-28 17:20:10 +08:00
Jo 17e3629be1 Update document (#809) 2025-09-28 17:08:11 +08:00
Jo 92ca7298ec Simplify README and index page (#808) 2025-09-28 16:59:12 +08:00
Jo d7c39b5733 Show error message in quiet mode (#807)
* Show error message in quiet mode

In quiet mode (`-q`), error messages will still be printed.
In silent mode (`-qq`), nothing gets printed.

* Generate cli doc

* Add test
2025-09-28 13:50:16 +08:00
Jo d0f7c4d6b0 Add --dry-run to prek auto-update (#806) 2025-09-28 12:06:44 +08:00
renovate[bot] 1ec4d32fe9 Update pre-commit (examples) (#741)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-27 21:24:32 +08:00
Álvaro Mondéjar Rubio 084386e8ce Add a security policy for reporting vulnerabilities (#804) 2025-09-27 21:20:34 +08:00
Jo eef84cf8c5 Bump version to 0.2.2 (#802) v0.2.2 2025-09-26 22:56:32 +08:00
Álvaro Mondéjar Rubio 921e543a5f Fix interpreter identification (#801) 2025-09-26 21:26:01 +08:00
Jo df852e914a Add a hint when hooks failed in CI (#800)
* .

* Add a hint when hooks failed in CI

* Fix tests
2025-09-26 13:27:55 +08:00
Jo 04bb76fcb4 Add prek cache dir, move prek gc and prek clean under prek cache (#795)
`prek gc` and `prek clean` are still available but hidden.
2025-09-25 13:36:41 +08:00
Álvaro Mondéjar Rubio cc646e8eda Fix links and warning format in README (#794)
* Fix links in README

* Fix line wrapping in warning

* Update warning message formatting in README
2025-09-25 13:31:25 +08:00
Jo 0ca8e7eca3 Add PaperQA2 to "Who is using prek" (#793) 2025-09-25 11:42:26 +08:00
Jo 0ab6cdf645 Run docker container with --init (#791) 2025-09-25 11:29:47 +08:00
Álvaro Mondéjar Rubio a95a3d0912 Deduplicate docs between README and MkDocs site (#792) 2025-09-25 11:28:29 +08:00
Jo c2d611d9ac Support --allow-multiple-documents for check-yaml (#790) 2025-09-24 13:57:59 +08:00
Jo 63fc5fc8da Improve arg parsing for builtin hooks (#789)
* Improve arg parsing for builtin hooks

* Fix tests
2025-09-24 13:36:30 +08:00
renovate[bot] a906d48a9c Update Rust crate astral-tokio-tar to v0.5.4 [SECURITY] (#788) 2025-09-24 07:27:19 +08:00
renovate[bot] 6595f7bcad Update dependency uv to v0.8.19 (#768) 2025-09-22 19:34:24 +08:00
Jo cd3a934d9d Clarify built-in hooks activation conditions and behavior (#781) 2025-09-22 17:12:54 +08:00
renovate[bot] 64afa98029 Update Rust crate anyhow to v1.0.100 (#769)
* Update Rust crate anyhow to v1.0.100

* Lint

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-09-22 14:31:33 +08:00
Jo 53cd4525d0 Use fs-err wrapper for File::lock (#779) 2025-09-22 13:23:19 +08:00
renovate[bot] b924bb5920 Update Rust crate fancy-regex to v0.16.2 (#772)
* Update Rust crate fancy-regex to v0.16.2

* Update snapshot

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-09-22 13:12:51 +08:00
renovate[bot] 63cc07c53d Update taiki-e/install-action action to v2.62.1 (#778)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-22 11:03:52 +08:00
renovate[bot] 3626607268 Update Rust crate clap to v4.5.48 (#770) 2025-09-22 10:35:24 +08:00