Skip to content

Commit

Permalink
fix: improper shell escaping and missed alias
Browse files Browse the repository at this point in the history
  • Loading branch information
mattculler committed Oct 11, 2024
1 parent d9cef88 commit 699191e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,24 @@ endif

---------------- : ## ----------------

.PHONY: autoformat
autoformat: format-ruff format-codespell ## Run all automatic formatters
.PHONY: format
format: format-ruff format-codespell ## Run all automatic formatters

.PHONY: format-ruff
format-ruff: ##- Automatically format with ruff
ruff check --fix $(SOURCES)
success=true
ruff check --fix $(SOURCES) || success=false
ruff format $(SOURCES)
$success || exit 1
$$success || exit 1

.PHONY: format-codespell
format-codespell: ##- Fix spelling issues with codespell
uv run codespell --toml pyproject.toml --write-changes $(SOURCES)

.PHONY: autoformat
autoformat: format ## Alias for 'format'

---------------- : ## ----------------

.PHONY: lint
Expand Down

0 comments on commit 699191e

Please sign in to comment.