Files
concrete/Makefile
Arthur Meyre a060aaae99 feat(tracing): add tracing facilities
- add BaseTracer which will hold most of the boilerplate code
- add hnumpy with a bare NPTracer and tracing function
- update IR to be compatible with tracing helpers
- update test helper to properly check that graphs are equivalent
- add test tracing a simple addition
- rename common/data_types/helpers.py to .../dtypes_helpers.py to avoid
having too many files with the same name
- ignore missing type stubs in the default mypy command
- add a comfort Makefile target to get errors about missing mypy stubs
2021-07-26 17:05:53 +02:00

47 lines
1.1 KiB
Makefile

setup_env:
poetry install
poetry run python -m pip install -U pip wheel setuptools
.PHONY: setup_env
sync_env:
poetry install --remove-untracked
make setup_env
.PHONY: sync_env
python_format:
poetry run env bash ./script/source_format/format_python.sh --dir hdk --dir tests
.PHONY: python_format
check_python_format:
poetry run env bash ./script/source_format/format_python.sh --dir hdk --dir tests --check
.PHONY: check_python_format
pylint:
poetry run pylint --rcfile=pylintrc hdk tests
.PHONY: pylint
conformance: python_format
.PHONY: conformance
pcc: check_python_format pylint mypy
.PHONY: pcc
pytest:
poetry run pytest --cov=hdk -vv --cov-report=xml tests/
.PHONY: pytest
# Not a huge fan of ignoring missing imports, but some packages do not have typing stubs
mypy:
poetry run mypy -p hdk --ignore-missing-imports
.PHONY: mypy
# Friendly target to run mypy without ignoring missing stubs and still have errors messages
# Allows to see which stubs we are missing
mypy_ns:
poetry run mypy -p hdk
.PHONY: mypy_ns
docs:
cd docs && poetry run make html
.PHONY: docs