| .DEFAULT_GOAL := help
|
| .PHONY: test system-deps dev-deps deps style lint install help docs
|
|
|
| help:
|
| @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
|
|
| target_dirs := tests trainer
|
|
|
| test_all:
|
| coverage run -m pytest trainer tests
|
|
|
| test:
|
| coverage run -m pytest -x trainer tests
|
|
|
| test_failed:
|
| coverage run -m pytest --ff trainer tests
|
|
|
| style:
|
| black ${target_dirs}
|
| isort ${target_dirs}
|
|
|
| lint:
|
| pylint ${target_dirs}
|
|
|
| dev-deps:
|
| pip install -r requirements.dev.txt
|
|
|
| doc-deps:
|
| pip install -r docs/requirements.txt
|
|
|
| build-docs:
|
| cd docs && make clean && make build
|
|
|
| deps:
|
| pip install -r requirements.txt
|
|
|
| install:
|
| pip install -e .[all]
|
|
|
| docs:
|
| $(MAKE) -C docs clean && $(MAKE) -C docs html
|
|
|