forked from vincentarelbundock/pymarginaleffects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (19 loc) · 778 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
.PHONY: readme test help install docs
help: ## Display this help screen
@echo -e "\033[1mAvailable commands:\033[0m\n"
@grep -E '^[a-z.A-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-18s\033[0m %s\n", $$1, $$2}' | sort
test: install ## run pytest suite
uv run --all-extras pytest
snapshot: ## snapshot test
R CMD BATCH tests/r/run.R
readme: ## render Quarto readme
poetry run quarto render docs/get_started.qmd --to gfm
mv -f docs/get_started.md README.md
lint: ## run the lint checkers
uv run --all-extras ruff check marginaleffects
uv run --all-extras ruff format marginaleffects
uv run --all-extras ruff format tests
install: ## install in poetry venv
uv pip install .
docs: readme ## build docs
uv run mkdocs build