Add prek pre-commit hooks via mise, fix formatting and clippy warnings

- Add mise.toml (prek 0.3.2) and .pre-commit-config.yaml with hooks for
  trailing whitespace, end-of-file, YAML check, merge conflicts, large files,
  cargo fmt, cargo clippy (-D warnings), and unit tests
- Add prek/mise recipes to justfile
- Run cargo fmt to fix formatting issues
- Fix all clippy warnings: collapse nested if statements, derive Default for Avatar
This commit is contained in:
Slavi Pantaleev
2026-02-10 14:33:19 +02:00
parent 8f87f05a08
commit a82e9a1d1f
12 changed files with 183 additions and 107 deletions

6
mise.toml Normal file
View File

@@ -0,0 +1,6 @@
[tools]
prek = "0.3.2"
[settings]
# Disable automatic trust prompts - we trust this config
yes = true