From 3e3ba7c4f8da9efe8ec9a52451ba8375555c33f5 Mon Sep 17 00:00:00 2001 From: Colin Maudry Date: Sun, 5 Jul 2026 00:03:06 +0200 Subject: [PATCH] Utilisation de uv and pre-commmit avant git add dans CLAUDE --- CLAUDE.md | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index c7ee305..0918d28 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -10,15 +10,6 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ### Setup -Setting up the virtual environment: - -```bash -python -m venv .venv # s'il n'existe pas déjà -source .venv/bin/activate -rtk pip install -U pip > /dev/null 2>&1 -rtk pip install -e . --group=dev -``` - Environment variables: ```bash @@ -28,24 +19,28 @@ cp .template.env .env # then customize .env ### Development ```bash -python run.py # starts Dash app +uv run run.py # starts Dash app ``` ### Production ```bash -gunicorn app:server +gunicorn run:server ``` ### Tests ```bash -rtk pytest # run all tests (some are Selenium-based integration tests) -rtk pytest tests/test_main.py::test_001_logo_and_search # run a single test +uv run pytest # run all tests (some are Selenium-based integration tests) +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. +## Ajouts git + +Avant d'ajouter des fichier dans git (`git add` ou `git commit -a`), exécute `pre-commit` pour que ruff formate les fichiers. + ## Architecture ### Multi-page Dash app