Skip to content

Commit f20ee64

Browse files
authored
Change poetry to uv (#99)
1 parent 5b7a38c commit f20ee64

File tree

6 files changed

+553
-450
lines changed

6 files changed

+553
-450
lines changed

.github/workflows/test_push.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
with:
1818
python-version: '3.9'
1919
architecture: 'x64'
20-
- name: "Python Poetry Action"
21-
uses: Gr1N/setup-poetry@v8
20+
- name: "Install uv"
21+
uses: astral-sh/setup-uv@v4
2222
- name: "Install dev dependencies"
2323
run: make install
2424
- name: "Run linters"

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Minimal Python version: 3.9.x
3636
3737
$ git clone https://github.com/grupy-sanca/dojo-toolkit.git
3838

39-
2. Create the virtual environment using `Poetry <https://python-poetry.org/>`_
39+
2. Create the virtual environment using `uv <https://docs.astral.sh/uv/>`_
4040
::
4141
4242
$ make install

Makefile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,27 @@ SHELL := bash
22

33
.PHONY: install
44
install:
5-
poetry install
5+
uv sync --all-extras --dev
66

77
.PHONY: test
88
test:
9-
poetry run pytest -vv --cov=dojo_toolkit --cov-report=term-missing
9+
uv run pytest -vv --cov=dojo_toolkit --cov-report=term-missing
1010

1111
.PHONY: lint
1212
lint:
13-
poetry check --lock
14-
poetry run ruff check .
15-
poetry run ruff format . --check
13+
uv lock --check
14+
uv run ruff check .
15+
uv run ruff format . --check
1616

1717
.PHONY: format
1818
format:
19-
poetry run ruff check . --fix
20-
poetry run ruff format .
19+
uv run ruff check . --fix
20+
uv run ruff format .
2121

2222
.PHONY: build
2323
build: clean
24-
poetry build
24+
uv build
25+
2526
.PHONY: clean
2627
clean: clean-eggs clean-build
2728
@find . -iname '*.pyc' -delete

0 commit comments

Comments
 (0)