git-hooks.nix
git-hooks.nix copied to clipboard
typos improvements
This PR comprises three changes to the typos hook:
- Use structured configuration by making
typos.settings.configurationan attrs. This change is not backwards compatible. - Add the
typos.settings.force-excludeoption that maps to typos'--force-excludeargument. In addition, enable it by default since you expect exclude globs set via the--excludeCLI option or the configuration file's[files.extend-exclude]option to be effective. - Enable multiple exclusion patterns in
typos.settings.exclude.