I've got fat fingers... so I usually leave tyops everywhere. Just had CI break on a typo and learnt about the spellchecker.
I'm thinking of adding something to CONTRIBUTING.md so future contributors can check thier PRs before pushing.
Would this be a good instruction to add? How about this?
## Spellchecking
Running `typos` from the root `/roc` directory will check the workspace. Note the configuration in `typos.toml`.
Maybe also include cargo install typos-cli --version 1.0.11
as install instructions.
Maybe also include
cargo install typos-cli --version 1.0.11
as install instructions.
This way of installing may not work well with nix, you can add typos
to the flake.nix file but it will be a newer version so you'll probably also have to correct some typos that it now can detect.
We could consider adding some of these fast things as git pre commit checks. Format of files and typos.
I'm not sure how to do pre-commit hooks. Or is that just a text explanation we having in CONTRIBUTING.md to ask before people commit?
Pre commit hooks are commands that are run by git locally before a commit is be made.
Last updated: Jul 06 2025 at 12:14 UTC