From 3603b873146091b29ffbf6ad8a5169d79a31f894 Mon Sep 17 00:00:00 2001 From: Daniel Ecer Date: Tue, 17 Dec 2024 16:26:55 +0000 Subject: [PATCH] Added dev-watch make target (#7) * Added dev-watch make target * keep the history when running dev-watch --- Makefile | 3 +++ pyproject.toml | 6 ++++++ requirements.dev.txt | 1 + 3 files changed, 10 insertions(+) create mode 100644 pyproject.toml diff --git a/Makefile b/Makefile index cc16f30..4a76557 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,9 @@ dev-unittest: dev-test: dev-lint dev-unittest +dev-watch: + $(PYTHON) -m pytest_watcher tests/unit_test + dev-start: $(PYTHON) -m uvicorn \ diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..f852484 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,6 @@ +[tool.pytest-watcher] +now = true +clear = false +delay = 0.2 +runner = "venv/bin/python" +runner_args = ["-m", "pytest"] diff --git a/requirements.dev.txt b/requirements.dev.txt index 2d4b04b..0ac6eb4 100644 --- a/requirements.dev.txt +++ b/requirements.dev.txt @@ -1,4 +1,5 @@ flake8==7.1.1 pylint==3.2.7 pytest==8.3.3 +pytest-watcher==0.4.3 mypy==1.11.2