Switch to uv (#1172)

This commit is contained in:
Sascha Ißbrücker
2025-08-23 07:37:25 +02:00
committed by GitHub
parent 6c874afff2
commit b90ae1b202
18 changed files with 867 additions and 244 deletions

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
coverage erase
coverage run manage.py test
coverage report --sort=cover
uv run coverage erase
uv run coverage run manage.py test
uv run coverage report --sort=cover

View File

@@ -24,6 +24,6 @@ export LD_DB_PASSWORD=linkding
export LD_SUPERUSER_NAME=admin
export LD_SUPERUSER_PASSWORD=admin
python manage.py migrate
python manage.py create_initial_superuser
python manage.py runserver
uv run manage.py migrate
uv run manage.py create_initial_superuser
uv run manage.py runserver

View File

@@ -1,12 +1,12 @@
#!/usr/bin/env bash
# Make sure Chromium is installed
playwright install chromium
uv run playwright install chromium
# Test server loads assets from static folder, so make sure files there are up-to-date
rm -rf static
npm run build
python manage.py collectstatic
uv run manage.py collectstatic
# Run E2E tests
python manage.py test bookmarks.tests_e2e --pattern="e2e_test_*.py"
uv run manage.py test bookmarks.tests_e2e --pattern="e2e_test_*.py"

View File

@@ -1 +1 @@
python manage.py test bookmarks.tests
uv run manage.py test bookmarks.tests