forked from keep-starknet-strange/madara
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
34 lines (26 loc) · 808 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.PHONY: check fix prt fmt clip tap test help
fix:
npx prettier --write .
cargo fmt
taplo fmt --config ./taplo/taplo.toml
cargo clippy --workspace --tests --no-deps --fix -- -D warnings
check: prt fmt clip tap
prt:
npx prettier --check .
fmt:
cargo fmt -- --check
clip:
cargo clippy --workspace --tests --no-deps -- -D warnings
tap:
taplo fmt --config ./taplo/taplo.toml --check
test:
cargo test
help:
@echo "Available targets:"
@echo " check - Run all checks (prt, fmt, clip, tap)"
@echo " fix - Fix code formatting and linting issues"
@echo " prt - Check code formatting with Prettier"
@echo " fmt - Check code formatting with rustfmt"
@echo " clip - Run Clippy linter"
@echo " tap - Check configuration file formatting with Taplo"
@echo " test - Run tests"