diff options
-rw-r--r-- | Makefile | 14 | ||||
-rw-r--r-- | pre-commit | 2 | ||||
-rw-r--r-- | tests/session_integrationtest.py | 2 |
3 files changed, 9 insertions, 9 deletions
@@ -1,17 +1,17 @@ test: all - ./venv/bin/pytest tests/* + ./.venv/bin/pytest tests/* -all: venv .git/hooks/pre-commit +all: .venv .git/hooks/pre-commit clean: - rm -rf venv + rm -rf .venv .git/hooks/pre-commit: pre-commit install -m 755 pre-commit .git/hooks/pre-commit -venv: requirements.txt - rm -rf venv - python -m venv venv - ./venv/bin/pip install -r requirements.txt +.venv: requirements.txt cli-project/pyproject.toml flashcards-project/pyproject.toml + rm -rf .venv + uv venv + uv pip install -r requirements.txt .PHONY: all test clean @@ -1,4 +1,4 @@ #!/bin/sh -./venv/bin/pytest tests/* +make test exit $? diff --git a/tests/session_integrationtest.py b/tests/session_integrationtest.py index ddabff9..267e374 100644 --- a/tests/session_integrationtest.py +++ b/tests/session_integrationtest.py @@ -1,7 +1,7 @@ import pytest import json -from flashcards.session import Session +from flashcards import Session @pytest.fixture def cardFiles(tmp_path): |