Refactor code structure for improved readability and maintainability
CI / Quality Checks (push) Failing after 9s
CI / Test Suite (push) Successful in 10s

This commit is contained in:
ВяткинАртём
2026-05-27 17:06:39 +03:00
parent d06bd989f3
commit 59aaa9c4d7
31 changed files with 1416 additions and 543 deletions
+31 -13
View File
@@ -1,20 +1,38 @@
# Makefile for uv + ruff + mypy + deptry
UV := uv
RUFF := ruff
MYPY := mypy
DEPTRY := deptry
.PHONY: full-lint clean-branches
.PHONY: format lint typecheck test ci-check build publish-gitea clean-branches
full-lint:
@echo "Running ruff check and fix..."
$(UV) run $(RUFF) check . --fix
@echo "Running mypy..."
$(UV) run $(MYPY) . --config-file ./pyproject.toml --no-incremental
@echo "Running deptry..."
$(UV) run $(DEPTRY) . --config ./pyproject.toml
@echo "All checks completed!"
format:
$(UV) run ruff format .
$(UV) run ruff check . --fix
lint:
$(UV) run ruff check .
typecheck:
$(UV) run mypy --config-file pyproject.toml
test:
$(UV) run pytest
ci-check:
$(UV) run ruff check .
$(UV) run mypy --config-file pyproject.toml
$(UV) run deptry .
build:
$(UV) build
publish-gitea:
@test -n "$$GITEA_PYPI_REPOSITORY_URL" || (echo "GITEA_PYPI_REPOSITORY_URL is required" && exit 1)
@test -n "$$GITEA_PACKAGE_USERNAME" || (echo "GITEA_PACKAGE_USERNAME is required" && exit 1)
@test -n "$$GITEA_PACKAGE_TOKEN" || (echo "GITEA_PACKAGE_TOKEN is required" && exit 1)
$(UV) build
$(UV) run --with twine twine check dist/*
TWINE_REPOSITORY_URL="$$GITEA_PYPI_REPOSITORY_URL" \
TWINE_USERNAME="$$GITEA_PACKAGE_USERNAME" \
TWINE_PASSWORD="$$GITEA_PACKAGE_TOKEN" \
$(UV) run --with twine twine upload dist/*
clean-branches:
ifeq ($(OS),Windows_NT)