Some checks failed
Build / Test on ubuntu-latest, py-3.8 (push) Successful in 4m21s
Lint / lint (push) Successful in 25s
Build / Test on macOS-latest, py-3.8 (push) Has been cancelled
Build / Test on windows-latest, py-3.8 (push) Has been cancelled
CodeQL / Analyze (python) (push) Failing after 1s
36 lines
809 B
Makefile
36 lines
809 B
Makefile
.PHONY: build test benchmark typecheck typecheck-strict clean
|
|
|
|
build:
|
|
poetry install
|
|
|
|
test:
|
|
python -m pytest tests -v --cov=aw_core --cov=aw_datastore --cov=aw_transform --cov=aw_query
|
|
|
|
.coverage:
|
|
make test
|
|
|
|
coverage_html: .coverage
|
|
python -m coverage html -d coverage_html
|
|
|
|
benchmark:
|
|
python -m aw_datastore.benchmark
|
|
|
|
typecheck:
|
|
export MYPYPATH=./stubs; python -m mypy aw_core aw_datastore aw_transform aw_query --show-traceback --ignore-missing-imports --follow-imports=skip
|
|
|
|
typecheck-strict:
|
|
export MYPYPATH=./stubs; python -m mypy aw_core aw_datastore aw_transform aw_query --strict-optional --check-untyped-defs; echo "Not a failing step"
|
|
|
|
lint:
|
|
ruff check .
|
|
|
|
lint-fix:
|
|
ruff check --fix .
|
|
|
|
format:
|
|
ruff format .
|
|
|
|
clean:
|
|
rm -rf build dist
|
|
rm -rf aw_core/__pycache__ aw_datastore/__pycache__
|