Skip to content

[ISSUE-34] Change poetry to uv #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ PYTHON_VERSION = 3.12

develop: clean_dev ##@Develop Create virtualenv
python$(PYTHON_VERSION) -m venv .venv
.venv/bin/pip install -U pip poetry
.venv/bin/poetry config virtualenvs.create false
.venv/bin/poetry install
.venv/bin/pip install -U pip uv
.venv/bin/uv sync
.venv/bin/pre-commit install

local: ##@Develop Run dev containers for test
Expand All @@ -16,20 +15,19 @@ local_down: ##@Develop Stop dev containers with delete volumes
docker compose -f docker-compose.dev.yaml down -v

develop-ci: ##@Develop Create virtualenv for CI
python -m pip install -U pip poetry
poetry config virtualenvs.create false
poetry install --no-root
python -m pip install -U pip uv
uv sync --all-groups --all-extras

test-ci: ##@Test Run tests with pytest and coverage in CI
pytest ./$(TEST_FOLDER_NAME) --junitxml=./junit.xml --cov=./$(PROJECT_NAME) --cov-report=xml
.venv/bin/pytest ./$(TEST_FOLDER_NAME) --junitxml=./junit.xml --cov=./$(PROJECT_NAME) --cov-report=xml

lint-ci: ruff mypy ##@Linting Run all linters in CI

ruff: ##@Linting Run ruff
ruff check ./$(PROJECT_NAME)
.venv/bin/ruff check ./$(PROJECT_NAME)

mypy: ##@Linting Run mypy
mypy --config-file ./pyproject.toml ./$(PROJECT_NAME) --enable-incomplete-feature=NewGenericSyntax
.venv/bin/mypy --config-file ./pyproject.toml ./$(PROJECT_NAME) --enable-incomplete-feature=NewGenericSyntax

alembic_init: ##@Database Run alembic init for async
.venv/bin/alembic init -t async ./$(PROJECT_NAME)/adapters/database/migrations
Expand Down
Loading