Make, MakeFile, Project, Poetry
(base) PS D:\VC25\Otus\Py\250610\projects\annotation_ci_proj>
.PHONY: clean lint types help
help:
@echo "Available commands:"
@echo " make clean Remove all generated files"
@echo " make lint Run linters on the project"
@echo " make format Format code with black"
@echo " make sort Sort imports with isort"
@echo " make types Check type annotations using mypy/pyright"
clean:
poetry lock
poetry cache clear packages --all
lint:
poetry run flake8 src/annotation_ci_proj
format:
poetry run black src/annotation_ci_proj
sort:
poetry run isort src/annotation_ci_proj
types:
poetry run mypy src/annotation_ci_proj
poetry run pyright src/annotation_ci_proj
Комментариев нет:
Отправить комментарий