|
install: |
|
python -m pip install -U pip |
|
python -m pip install -e . |
|
|
|
install-dev: |
|
python -m pip install -r requirements-test.txt |
|
|
|
lint: |
|
python -m mypy objaverse_xl |
|
python -m pylint objaverse_xl |
|
python -m black --check objaverse_xl |
|
python -m isort --check-only objaverse_xl |
|
python -m black --check scripts --exclude scripts/rendering/blender-3.2.2-linux-x64/ |
|
python -m isort --check-only scripts/**/*.py --skip scripts/rendering/blender-3.2.2-linux-x64/ |
|
|
|
format: |
|
python -m isort objaverse_xl |
|
python -m black objaverse_xl |
|
python -m isort scripts/**/*.py --skip scripts/rendering/blender-3.2.2-linux-x64/ |
|
python -m black scripts --exclude scripts/rendering/blender-3.2.2-linux-x64/ |
|
|
|
test: |
|
python -m pytest -x -s -v tests |
|
|
|
.PHONY: help |
|
|
|
help: |
|
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' |