Commit Graph

7 Commits

Author SHA1 Message Date
Mikolaj Wielgus 594bb51a57 chore: Use `committed` instead of `conventional-pre-commit`
The most important difference in this PR is that we now enforce scope
and subject line length. `conventional-pre-commit`, which we have been
using until now, does not appear to allow that unlike `committed` which
we will be now using.

On the other hand, `committed` doesn't allow to require having a scope,
unlike `conventional-pre-commit`, but I will probably submit them a PR
for this later.

I also find it questionable that disabling particular checks is to be
done by switching boolean options to false. Doing so by string options
would be more future-proof.

Also note that this has a check to make sure the commit message starts
with a verb. I am fine with this myself, but it may be an overkill.
2025-04-30 11:22:23 +00:00
Mikolaj Wielgus fcc3515fe7 chore(pre-commit): add `reuse lint` check to pre-commit for REUSE compliance 2024-12-30 00:55:34 +01:00
Mikolaj Wielgus 71cdc2794d chore(licensing): add REUSE headers to hidden files, `flake.nix`, `index.html`
I ran the following command in Fish shell:

```
reuse annotate --copyright="Topola contributors" --license="MIT" **/.gitignore {.woodpecker/*,.*}.yaml .rustfmt.toml flake.nix index.html
```
2024-12-30 00:18:38 +01:00
Mikolaj Wielgus eca42160f0 chore(pre-commit): comment out cargo clippy, until we resolve all warnings 2024-10-06 16:59:46 +02:00
Mikolaj Wielgus 2e79cae432 chore(pre-commit): add cargo-check and clippy checks 2024-10-06 05:35:35 +02:00
Mikolaj Wielgus ede2cc2c32 chore(pre-commit): add conventional commits hook 2024-10-06 04:39:31 +02:00
Mikolaj Wielgus 04fda44d4b chore(pre-commit): move rustfmt hook to `.pre-commit-config.yaml` 2024-10-06 04:36:39 +02:00