forked from fzakaria/sqlelf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (29 loc) · 830 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.PHONY: help
help: ## Show the help.
@echo "Usage: make <target>"
@echo ""
@echo "Targets:"
@fgrep "##" Makefile | fgrep -v fgrep
.PHONY: show
show: ## Show the current environment.
@echo "Current environment:"
@echo "Running using $(VIRTUAL_ENV)"
@$(VIRTUAL_ENV)/bin/python -V
@$(VIRTUAL_ENV)/bin/python -m site
.PHONY: fmt
fmt: ## Format code using black & isort.
isort sqlelf/ benchmarks/ tests/
black sqlelf/ benchmarks/ tests/
.PHONY: lint
lint: ## Run pep8, black, mypy linters.
flake8 sqlelf/ benchmarks/ tests/
black --check sqlelf/ benchmarks/ tests/
pyright
mypy --strict --install-types --non-interactive sqlelf tests
.PHONY: test
test: ## Run pytest primarily.
pytest
pytest -m "slow"
.PHONY: coverage
coverage:
coverage run -m pytest