rtk, uv, pyproject

This commit is contained in:
Colin Maudry
2026-04-19 23:39:33 +02:00
parent c7c7c2c62c
commit 3ce6f224ae
3 changed files with 6 additions and 12 deletions
+3 -5
View File
@@ -11,8 +11,6 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
### Setup ### Setup
```bash ```bash
python -m venv .venv && source .venv/bin/activate
pip install ".[dev]"
cp template.env .env # then customize .env cp template.env .env # then customize .env
``` ```
@@ -25,14 +23,14 @@ uv run run.py # starts Dash with debug=True and hot reload
### Production ### Production
```bash ```bash
gunicorn app:server uv run gunicorn app:server
``` ```
### Tests ### Tests
```bash ```bash
uv rtk run pytest # run all tests (Selenium-based integration tests) rtk uv 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 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. Tests require a running Chrome/Chromium browser. They use `DashComposite` from `dash[testing]` with Selenium WebDriver.
+2 -6
View File
@@ -8,19 +8,15 @@
## Installation et lancement ## Installation et lancement
```shell ```shell
python -m venv .venv
source .venv/bin/activate
pip install .
# Copie et personnalisation du .env # Copie et personnalisation du .env
cp template.env .env cp template.env .env
nano .env nano .env
# Pour la production # Pour la production
gunicorn app:server uv run gunicorn app:server
# Pour avoir le debuggage et le hot reload # Pour avoir le debuggage et le hot reload
python run.py uv run run.py
``` ```
## Déploiement ## Déploiement
+1 -1
View File
@@ -23,7 +23,7 @@ dependencies = [
"pyarrow>=23.0.1", "pyarrow>=23.0.1",
] ]
[project.optional-dependencies] [dependency-groups]
dev = [ dev = [
"pytest", "pytest",
"pytest-env", "pytest-env",