Skip to content

Commit

Permalink
Add tools to Makefile for fmt & lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fzakaria committed Apr 6, 2024
1 parent 26a1445 commit 046ce95
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ show: ## Show the current environment.

.PHONY: fmt
fmt: ## Format code using black & isort.
isort sqlelf/ benchmarks/ tests/
black sqlelf/ benchmarks/ tests/
isort sqlelf/ benchmarks/ tests/ tools/
black sqlelf/ benchmarks/ tests/ tools/

.PHONY: lint
lint: ## Run pep8, black, mypy linters.
flake8 sqlelf/ benchmarks/ tests/
black --check sqlelf/ benchmarks/ tests/
flake8 sqlelf/ benchmarks/ tests/ tools/
black --check sqlelf/ benchmarks/ tests/ tools/
pyright
mypy --strict --install-types --non-interactive sqlelf tests
mypy --strict --install-types --non-interactive sqlelf tests tools

.PHONY: test
test: ## Run pytest primarily.
Expand Down

0 comments on commit 046ce95

Please sign in to comment.