1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00
Commit graph

14 commits

Author SHA1 Message Date
Sylvestre Ledru
eaa6d228b1 Use mozilla fluent linter (and remove mine) 2025-06-28 19:01:33 +02:00
Sylvestre Ledru
599a958454 Add a fluent precommit hook 2025-06-21 19:30:22 +02:00
Sylvestre Ledru
3c29c77ffa Make cspell pre-commit hook optional with skip message 2025-06-10 20:41:49 +02:00
Yuri Astrakhan
f46e096d35 Add common pre-commit hooks
Pre-commits are usually used to minimize busy work by the contributors, e.g., by fixing extra spacing, formatting, etc. This PR adds various basic text file checks to the repo. I also made yaml spacing a bit cleaner.

I was a bit surprised it is used for `cargo clippy` because you wouldn't want clippy's auto-fixes to be auto-applied by CI, so usually GitHub workflow simply checks runs it regularly. This is outside of the scope for this PR, but perhaps it should be removed here?
2025-06-03 18:59:36 -04:00
Sylvestre Ledru
94132060b6
Merge pull request #8030 from drinkcat/clippy-better
clippy pre-commit/CI improvements
2025-05-29 15:05:15 +02:00
Nicolas Boichat
7f05fca1ae .pre-commit-config.yaml: Match config in CI
We need to enable -D warnings to get the same behaviour.
2025-05-29 13:55:32 +02:00
Nicolas Boichat
0ef7c205d0 .pre-commit-config.yaml: Do not fail cspell if all files are ignored
cspell pre-commit hook would fail if the only change was a
Cargo.lock change.

This fixes it.
2025-05-29 09:12:17 +02:00
Nicolas Boichat
4a959d4bdd .pre-commit-config.yaml: Also run cspell
That cuaght me a few times... I think it's reasonable to ask devs
to install cspell locally if they want to use the pre-commit hook.
2025-03-25 13:57:08 +01:00
Ben Wiederhake
caa4d1c57b Change the git pre-commit actions to *actually* use stable
This is in response to #6715: e8bb8dffa1
The pre-commit actions have a higher MSRV than the overall project (1.70.0),
so if 1.70.0 is the configured default, this lead to problems (#6730).
This commit fixes the situation by specifying 'stable', whatever that means on the user's system.
2024-09-30 22:51:30 +02:00
David Campbell
e8bb8dffa1
Change the git pre-commit actions to work on stable.
These are not being fixed, so it does not make sense to constantly
take on new lints. The fmts may never be stabilized. Currently,
you can not even commit, because it errors out. At least switch to
lints that make it to stable when they are released.
2024-09-19 12:15:04 -04:00
Jan Verbeek
d06c074829 Run clippy on the full workspace
These lints were cluttering up the "problems" tab in my VS
Code. `--workspace` fixes the disparity.
2021-08-24 17:10:16 +02:00
Sylvestre Ledru
4a3703d218
fix a warning
it was showing:
[WARNING] normalizing pre-commit configuration to a top-level map.  support for top level list will be removed in a future version.  run: `pre-commit migrate-config` to automatically fix this.
2021-05-30 23:18:45 +02:00
Jan Scheer
b9863e1cc4 fix precommit for clippy nightly 2021-05-30 21:01:38 +02:00
desbma
be03c948ed
Add pre-commit hook + run fmt (#1959) 2021-03-30 21:24:01 +02:00