Skip to content

Commit

Permalink
chore: Add make fix for running cargo clippy --fix (#21024)
Browse files Browse the repository at this point in the history
  • Loading branch information
orlp authored Jan 31, 2025
1 parent 8837dc8 commit 71e7c17
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ fmt: ## Run autoformatting and linting
cargo fmt --all
dprint fmt
$(VENV_BIN)/typos

.PHONY: fix
fix:
cargo clippy --workspace --all-targets --all-features --fix
@# Good chance the fixing introduced formatting issues, best to just do a quick format.
cargo fmt --all


.PHONY: pre-commit
pre-commit: fmt clippy clippy-default ## Run all code quality checks
Expand Down
4 changes: 4 additions & 0 deletions crates/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
SHELL=bash
BASE ?= main

.PHONY: fix
fix:
@$(MAKE) -s -C .. $@

.PHONY: fmt
fmt: ## Run rustfmt and dprint
cargo fmt --all
Expand Down
4 changes: 4 additions & 0 deletions py-polars/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ build-debug-release: .venv ## Same as build-release, but with full debug symbol
.PHONY: build-dist-release
build-dist-release: .venv ## Compile and install Python Polars binary with super slow extra optimization turned on, for distribution
@$(MAKE) -s -C .. $@

.PHONY: fix
fix:
@$(MAKE) -s -C .. $@

.PHONY: lint
lint: .venv ## Run lint checks (only)
Expand Down

0 comments on commit 71e7c17

Please sign in to comment.