dev: format the code in pre-commit

This commit is contained in:
naskya 2024-01-22 02:11:22 +09:00
parent 1beb3df99f
commit b5a34b5bcb
Signed by: naskya
GPG key ID: 712D413B3A9FED5C
2 changed files with 7 additions and 2 deletions

View file

@ -24,7 +24,7 @@ UPDATE_SCRIPTS += $(foreach dir, neko/update, $(wildcard $(dir)/*))
.PHONY: pre-commit .PHONY: pre-commit
pre-commit: shellcheck update-lockfiles regenerate-entities neko/index.js rust-lint pre-commit: format shellcheck update-lockfiles regenerate-entities neko/index.js rust-lint
.PHONY: update-lockfiles .PHONY: update-lockfiles
@ -53,6 +53,11 @@ $(T)/shellcheck: $(UPDATE_SCRIPTS)
touch $@ touch $@
.PHONY: format
format:
pnpm run format
.PHONY: rust-lint .PHONY: rust-lint
rust-lint: $(T)/rust-lint rust-lint: $(T)/rust-lint

View file

@ -57,7 +57,7 @@ make
make run make run
``` ```
### lockfile や native-utils の entity の更新など(コミット前に行ってください) ### lockfile や native-utils の entity の更新やコードのフォーマットなど(コミット前に行ってください)
```bash ```bash
make make