Skip to content

Commit e063a3b

Browse files
Сергей Наталенкоandy-takker
authored andcommitted
[ISSUE-34] Change poetry to uv
1 parent f65e9f3 commit e063a3b

File tree

4 files changed

+931
-1477
lines changed

4 files changed

+931
-1477
lines changed

Makefile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ PYTHON_VERSION = 3.12
44

55
develop: clean_dev ##@Develop Create virtualenv
66
python$(PYTHON_VERSION) -m venv .venv
7-
.venv/bin/pip install -U pip poetry
8-
.venv/bin/poetry config virtualenvs.create false
9-
.venv/bin/poetry install
7+
.venv/bin/pip install -U pip uv
8+
.venv/bin/uv sync
109
.venv/bin/pre-commit install
1110

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

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

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

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

2826
ruff: ##@Linting Run ruff
29-
ruff check ./$(PROJECT_NAME)
27+
.venv/bin/ruff check ./$(PROJECT_NAME)
3028

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

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

0 commit comments

Comments
 (0)