Skip to content

Instantly share code, notes, and snippets.

@mimikun
Created August 23, 2024 12:33
Show Gist options
  • Save mimikun/73eb1d1f12b392d2006dd2372acee52b to your computer and use it in GitHub Desktop.
Save mimikun/73eb1d1f12b392d2006dd2372acee52b to your computer and use it in GitHub Desktop.
typos Makefile
.DEFAULT_GOAL := help
## Edit config
.PHONY : edit
edit :
nvim .typos.toml
## Check typo
.PHONY : test
test :
typos .
## Fix typo
.PHONY : fmt
fmt :
typos -w .
## Ignore data writing
.PHONY : ignore
ignore :
typos . >> .typos.toml
## Git commit
.PHONY : commit
commit :
git commit -am "wip" -n
## Show help
.PHONY : help
help :
@make2help $(MAKEFILE_LIST)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment