Created
August 23, 2024 12:33
-
-
Save mimikun/73eb1d1f12b392d2006dd2372acee52b to your computer and use it in GitHub Desktop.
typos Makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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