summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2023-12-09 18:36:38 +0100
committerSebastian Thiel <sebastian.thiel@icloud.com>2023-12-09 18:36:38 +0100
commit9135c18e27a75b23921f9bba4281af9543017a66 (patch)
tree3020aa469beb3e7811bfb7f82bd6825f82897184 /Makefile
parent7fbc136f8d61676a89cd19c6035ec02a8bd14147 (diff)
adjust names of `make fmt` and `make ready`; `fmt` now only checks
Let's not have the makefile change the codebase itself.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 4517bd4..5b633aa 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,9 @@ target/release/dua: always
clippy: ## Run lints with clippy
cargo clippy -- -D warnings
+check-fmt: ## Validate that the codebase is formatted correctly (but do not format it)
+ cargo fmt --check
+
profile: target/release/dua ## run callgrind and annotate its output - linux only
valgrind --callgrind-out-file=callgrind.profile --tool=callgrind $< >/dev/null
callgrind_annotate --auto=yes callgrind.profile
@@ -39,11 +42,6 @@ check:## run cargo-check with various features
cargo check --no-default-features --features tui-crossplatform
cargo check --no-default-features --features trash-move
-fmt:
- cargo fmt
-
-ready: fmt clippy tests
-
unit-tests: ## run all unit tests
cargo test --all
cargo test --all --no-default-features --features trash-move
@@ -57,3 +55,5 @@ journey-tests: target/debug/dua ## run stateless journey tests
continuous-journey-tests: ## run stateless journey tests whenever something changes
watchexec $(MAKE) journey-tests
+check-pre-push: check-fmt clippy tests ## Run this before pushing for a good chance that CI will be green
+