From 3ce6f224ae97af8a8fb8bdc0fae332f17a17bb00 Mon Sep 17 00:00:00 2001 From: Colin Maudry Date: Sun, 19 Apr 2026 23:39:33 +0200 Subject: [PATCH] rtk, uv, pyproject --- CLAUDE.md | 8 +++----- README.md | 8 ++------ pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index f27b6bf..509783b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -11,8 +11,6 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ### Setup ```bash -python -m venv .venv && source .venv/bin/activate -pip install ".[dev]" cp template.env .env # then customize .env ``` @@ -25,14 +23,14 @@ uv run run.py # starts Dash with debug=True and hot reload ### Production ```bash -gunicorn app:server +uv run gunicorn app:server ``` ### Tests ```bash -uv rtk run pytest # run all tests (Selenium-based integration tests) -uv rtk run pytest tests/test_main.py::test_001_logo_and_search # run a single test +rtk uv run pytest # run all tests (Selenium-based integration tests) +rtk uv run pytest tests/test_main.py::test_001_logo_and_search # run a single test ``` Tests require a running Chrome/Chromium browser. They use `DashComposite` from `dash[testing]` with Selenium WebDriver. diff --git a/README.md b/README.md index 8ed961d..73e96c2 100644 --- a/README.md +++ b/README.md @@ -8,19 +8,15 @@ ## Installation et lancement ```shell -python -m venv .venv -source .venv/bin/activate -pip install . - # Copie et personnalisation du .env cp template.env .env nano .env # Pour la production -gunicorn app:server +uv run gunicorn app:server # Pour avoir le debuggage et le hot reload -python run.py +uv run run.py ``` ## Déploiement diff --git a/pyproject.toml b/pyproject.toml index 3fbce4e..4157f09 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ dependencies = [ "pyarrow>=23.0.1", ] -[project.optional-dependencies] +[dependency-groups] dev = [ "pytest", "pytest-env",