Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mbsantiago committed May 10, 2024
1 parent 3b8b077 commit ceed73c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@ install: ## Install the project in dev mode.

.PHONY: fmt
fmt: ## Format code using black & isort.
$(ENV_PREFIX)isort $(PROJECT_NAME)/
$(ENV_PREFIX)black $(PROJECT_NAME)/
$(ENV_PREFIX)black tests/
$(ENV_PREFIX)ruff format $(PROJECT_NAME)/
$(ENV_PREFIX)ruff format tests/

.PHONY: lint
lint: ## Run ruff, black, mypy linters.
$(ENV_PREFIX)ruff $(PROJECT_NAME)/
$(ENV_PREFIX)black --check $(PROJECT_NAME)/
$(ENV_PREFIX)black --check tests/
$(ENV_PREFIX)ruff check $(PROJECT_NAME)/
$(ENV_PREFIX)ruff check tests/
$(ENV_PREFIX)mypy $(PROJECT_NAME)/ --config-file pyproject.toml

.PHONY: test-watch
Expand Down

0 comments on commit ceed73c

Please sign in to comment.