| 1 |
.DEFAULT_GOAL := help |
| 2 |
|
| 3 |
.PHONY: help |
| 4 |
help: |
| 5 |
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' |
| 6 |
|
| 7 |
.PHONY: install |
| 8 |
install: |
| 9 |
flit install --deps develop --symlink |
| 10 |
|
| 11 |
.PHONY: lint |
| 12 |
lint: |
| 13 |
ruff format --check ninja tests |
| 14 |
ruff check ninja tests |
| 15 |
mypy ninja |
| 16 |
|
| 17 |
.PHONY: fmt format |
| 18 |
fmt format: |
| 19 |
ruff format ninja tests |
| 20 |
ruff check --fix ninja tests |
| 21 |
|
| 22 |
.PHONY: test |
| 23 |
test: |
| 24 |
pytest . |
| 25 |
|
| 26 |
.PHONY: test-cov |
| 27 |
test-cov: |
| 28 |
pytest --cov=ninja --cov-report term-missing tests |
| 29 |
|
| 30 |
.PHONY: docs |
| 31 |
docs: |
| 32 |
pip install -r docs/requirements.txt |
| 33 |
cd docs && mkdocs serve -a localhost:8090 |