Skip to content

Commit 75bb0ed

Browse files
chore: remove poetry, add deptry, uv extras
1 parent d08907e commit 75bb0ed

File tree

2 files changed

+11
-25
lines changed

2 files changed

+11
-25
lines changed

taskfile.yml

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ tasks:
3232
echo -e "DOCKERFILE:\t{{.DOCKERFILE}}"
3333
echo -e "HEROKU_APP:\t{{.HEROKU_APP}}"
3434
echo -e "PLATFORM:\t{{.PLATFORM}}"
35-
echo -e "POETRY:\t\t{{.POETRY}}"
36-
echo -e "PY_VER:\t\t{{.PY_VER}}"
3735
echo -e "SCRIPT:\t\t{{.SCRIPT}}"
3836
echo -e "REGISTRY:\t$REGISTRY"
3937
echo -e "SERVICE:\t{{.SERVICE}}"
@@ -60,17 +58,22 @@ tasks:
6058
lint:
6159
desc: "Run linters"
6260
cmds:
63-
- poetry run ruff check --fix --respect-gitignore
61+
- uv run ruff check --fix --respect-gitignore
6462

6563
format:
6664
desc: "Run formatters"
6765
cmds:
68-
- poetry run ruff format --respect-gitignore
66+
- uv run ruff format --respect-gitignore
6967

7068
test:
7169
desc: "Run tests"
7270
cmds:
73-
- poetry run pytest
71+
- uv run pytest
72+
73+
deptry:
74+
desc: "Run deptry"
75+
cmds:
76+
- uv run deptry {{.ROOT_DIR}}
7477

7578
pyclean:
7679
desc: "Remove .pyc and __pycache__"
@@ -95,22 +98,3 @@ tasks:
9598
desc: "Check bash scripts"
9699
cmds:
97100
- checkbashism -x {{.TLD}}/app/*.sh
98-
99-
update-deps:
100-
desc: "Update dependencies"
101-
cmds:
102-
- |
103-
poetry cache clear --all pypi --no-ansi
104-
poetry update --lock --no-ansi
105-
106-
export-reqs:
107-
desc: "Export requirements.txt"
108-
summary: |
109-
Export the project dependencies to a requirements.txt file.
110-
cmds:
111-
- |
112-
poetry export -f requirements.txt \
113-
--output {{.TLD}}/requirements.txt \
114-
--without-hashes \
115-
--no-ansi
116-
ignore_error: true

taskfiles/uv.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ tasks:
2424

2525
install:
2626
desc: "Install project dependencies"
27+
deps: [venv]
2728
cmds:
28-
- uv pip install -r pyproject.toml
29+
- uv pip install -r pyproject.toml --all-extras
2930
dir: "{{.ROOT_DIR}}"
3031

3132
lock:
@@ -40,6 +41,7 @@ tasks:
4041

4142
sync:
4243
desc: "Sync dependencies with lockfile"
44+
deps: [venv]
4345
summary: |
4446
Syncing ensures that all project dependencies are installed and up-to-date with the lockfile.
4547

0 commit comments

Comments
 (0)