This commit is contained in:
parent
5b06c92731
commit
8e0c7d38ec
10 changed files with 225 additions and 115 deletions
16
Makefile
Normal file
16
Makefile
Normal file
|
@ -0,0 +1,16 @@
|
|||
|
||||
.PHONY: venv setup check
|
||||
help: ## Display this help message
|
||||
@echo "Usage:"
|
||||
@echo " make <target>"
|
||||
@echo ""
|
||||
@echo "Targets:"
|
||||
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " %-20s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
|
||||
|
||||
setup: ## Create Python virtualenv and install dependencies
|
||||
@if [ ! -f .env ]; then cp .env.example .env; fi
|
||||
@if [ ! -d .venv ]; then python3 -m venv .venv; fi
|
||||
@if [ -d .venv ]; then . .venv/bin/activate && pip3 install -r requirements.txt; fi
|
||||
|
||||
check: ## Run linter, formatter and typechecks
|
||||
ruff check && ruff format && mypy config/master.cfg
|
Loading…
Add table
Add a link
Reference in a new issue