-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (28 loc) · 1.06 KB
/
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
36
37
38
39
PYTHON_FILES = `(find . -iname "*.py" -not -path "./.venv/*")`
install: ## Install package dependencies
poetry install --sync --with dev,types
install-hard: ## Install package dependencies from scratch
rm -rf .venv/
poetry lock
make install
poetry-update: ## Upgrade poetry and dependencies
poetry self update
poetry run pip install --upgrade pip wheel setuptools
poetry update
black: ## Run Black
poetry run black --quiet --check $(PYTHON_FILES)
black-fix: ## Run Black with automated fix
poetry run black --quiet $(PYTHON_FILES)
mypy: ## Run Mypy
poetry run mypy $(PYTHON_FILES)
ruff: ## Run Ruff
poetry run ruff check $(PYTHON_FILES)
ruff-fix: ## Run Ruff with automated fix
poetry run ruff check --fix $(PYTHON_FILES)
pytest: ## Run Pytest
poetry run pytest tests/
pytest-coverage: ## Run coverage report
poetry run coverage run -m pytest tests/
poetry run coverage report
help: ## Description of the Makefile commands
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}'