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

64 Commits

Author SHA1 Message Date
Felix Blom
aa6cd18cde Implement check-executables-have-shebangs as builtin-hook (#924)
* feat: Implement check-executables-have-shebangs hook

* Tweak

* Minor

* Tweak

* Minor

* feat: Implement check-executables-have-shebangs hook

* Fix paths

* Debug

* Debug

* Fix ls-files split

* Update docs

---------

Co-authored-by: Felix Blom <70511386+Felix-Blom@users.noreply.github.com>
Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-10-30 16:29:24 +08:00
Copilot
b524f38675 Document that .gitignore is respected by default during workspace discovery (#983)
* Initial plan

* Document that .gitignore is respected by default and add test

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

* Lint

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: j178 <10510431+j178@users.noreply.github.com>
2025-10-28 16:31:00 +08:00
Jo
476d84cf00 Fix PREK_UV_SOURCE list indentation (#977) 2025-10-27 17:34:12 +08:00
Jo
473ca4a188 Update language support status (#970)
* Update language support status

* Tweak
2025-10-26 18:25:43 +08:00
Steven Taylor
7161581362 Allow using system trusted store by PREK_NATIVE_TLS (#959) 2025-10-26 03:56:02 +08:00
Jo
8ccc7955e3 Update status about lua (#961) 2025-10-24 19:55:50 +08:00
Les Freire
93a70da4da Update built-in hook documentation (#943) 2025-10-20 16:23:45 +08:00
Jo
f8a8181ad1 Update pre-commit-hook version in quick start (#937) 2025-10-19 21:58:57 +08:00
Jo
5d0f97f7bf Reorganize README structure (#935) 2025-10-19 21:47:50 +08:00
Jo
9c6987fe40 Add a page about "Quick start" (#934) 2025-10-19 21:34:56 +08:00
Jo
d174e59439 Improve logo (#916) 2025-10-17 18:26:12 +08:00
Aditya Yadav
67d956e8a0 Add --fail-fast CLI flag to stop after first hook failure (#908)
* Add --fail-fast CLI flag to stop after first hook failure

- Add fail_fast field to RunArgs struct with CLI flag support
- Fix in hook_impl.rs where fail_fast was hardcoded to false
- Update run() and run_hooks() to accept and propagate fail_fast parameter
- CLI flag overrides config file setting (enables fail-fast mode)
- Ensure try-repo and main entry point pass fail_fast correctly

* Update test snapshots for --fail-fast flag

* Add CLI flag test for --fail-fast

* Fix trailing whitespace in test comment
2025-10-17 11:07:27 +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
Colin Dean
0d91f4c39e Add Nix and Conda installation details (#874)
* Update README with Nix and Conda installation details

Progress toward #805

* Update docs/installation.md

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-10-14 11:50:05 +08:00
Álvaro Mondéjar Rubio
ff3a6746ff Publish prek to npmjs.com (#819)
* Publish prek to npmjs.com

* Add some docs

* Fix error in README

* Put installation after cargo in README

* Update docs

* Update integration

* Minor change

* Minor change

* Use `@j178/prek`

* Use cargo-dist generated npm package

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-10-13 23:30:50 +08:00
Luiz Otavio Vilas Boas Oliveira
74cb495dea Implement prek try-repo (#797)
* Add try_repo logic and tests (WIP)

* Remove unnecessary mut

* Fix clippy issues

* Add unit test

* Update snapshots

* Update docs

* Update unit test

* WIP

* Update snapshots

* Lint

* Add extra filters to try_repo tests

* Lint

* Update unit tests

* Apply Josh's suggestions

* Fix arg name

* .

* Fix

* Fix

* Generate

* Fix snapshot

* Improve coverage

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-10-10 21:11:31 +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
59960410fa Add support for .prekignore to ignore directories from project discovery (#826) 2025-10-01 18:15:10 +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
0adb26401d Add a global --log-file flag to specify the log file path (#817) 2025-09-29 16:30:48 +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
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
a95a3d0912 Deduplicate docs between README and MkDocs site (#792) 2025-09-25 11:28:29 +08:00
Jo
cd3a934d9d Clarify built-in hooks activation conditions and behavior (#781) 2025-09-22 17:12:54 +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
Aarni Koskela
de9107f2bd Add and use a smaller webp version of logo (#758) 2025-09-18 21:39:06 +08:00
Jo
84da002275 Mention j178/prek-action in docs (#753)
Huge thanks to @frostming for creating prek-action and for generously handing it over to me!
2025-09-16 15:47:35 +08:00
Jo
224d7e6dae Bump version to 0.2.1 (#749) 2025-09-15 23:01:14 +08:00
Jo
65c29da7b6 Update some docs (#745)
* .

* Improve some docs
2025-09-15 15:59:13 +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) 2025-09-14 12:43:16 +08:00
Jo
98e0b71a61 Bump version to 0.2.0-alpha.5 (#711) 2025-09-11 10:52:26 +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
6f0a7da41b Generate cli reference (#707)
* Generate cli reference

* Fix lint
2025-09-10 22:05:05 +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
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
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
d5f2d6b303 Bump version to 0.2.0-alpha.3 (#671) 2025-09-08 15:21:24 +08:00
Jo
9fcc878a67 Update installer link 2025-09-07 16:22:43 +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