Skip to content

Commit

Permalink
fix: update ruff format commands
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurdjn committed Oct 23, 2024
1 parent ede1ac8 commit 690d245
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,19 @@ CMD:=poetry run

.PHONY: format
format: ## Format source code and tests
$(CMD) black .
$(CMD) ruff format $(SRC) $(TESTS)

.PHONY: lint
lint: ## Lint source code and tests
$(CMD) ruff .
$(CMD) ruff $(SRC) $(TESTS)

.PHONY: lint-fix
lint-fix: ## Lint and fix source code and tests
$(CMD) ruff --fix .
$(CMD) ruff --fix $(SRC) $(TESTS)

.PHONY: type
type: ## Type in source code and tests
$(CMD) mypy .

.PHONY: isort
isort: ## Sort imports in source code and tests
$(CMD) isort .
$(CMD) mypy $(SRC) $(TESTS)

.PHONY: pre-commit
pre-commit: ## Run pre-commit hooks
Expand Down

0 comments on commit 690d245

Please sign in to comment.