| # Copyright (c) 2024, Arm Limited and Contributors. All rights reserved. |
| # SPDX-License-Identifier: BSD-3-Clause |
| SHELL := /usr/bin/env bash |
| pip install -r requirements.txt |
| poetry lock -n && poetry export --without-hashes > requirements.txt |
| -poetry run mypy --install-types --non-interactive ./ |
| pip install -r requirements.txt |
| clean-test: ## remove test and coverage artifacts |
| clean-pyc: ## remove Python file artifacts |
| find . -name '*.pyc' -exec rm -f {} + |
| find . -name '*.pyo' -exec rm -f {} + |
| find . -name '*~' -exec rm -f {} + |
| find . -name '__pycache__' -exec rm -fr {} + |
| find . | grep -E ".pytest_cache" | xargs rm -rf |
| find . | grep -E ".mypy_cache" | xargs rm -rf |
| clean-build: ## remove build artifacts |
| find . -name '*.egg-info' -exec rm -fr {} + |
| find . -name '*.egg' -exec rm -f {} + |
| .PHONY: clean clean-build clean-pyc clean-test |
| clean: uninstall clean-build clean-pyc clean-test clean-tmp ## remove all build, test, coverage and Python artifacts |
| pip uninstall -y cot-dt2c |
| PYTHONPATH=$(PYTHONPATH) poetry run pytest -c pyproject.toml tests/ |