Update project structure and configurations
This commit is contained in:
30
AGENTS.md
30
AGENTS.md
@@ -24,6 +24,8 @@ entropyk/
|
||||
|
||||
## Development Commands
|
||||
|
||||
### Rust (principal)
|
||||
|
||||
```bash
|
||||
# Build
|
||||
cargo build
|
||||
@@ -41,6 +43,34 @@ cargo run --package entropyk-cli -- validate --config config.json
|
||||
cargo build 2>&1 | grep warning
|
||||
```
|
||||
|
||||
### Python (bindings et tests Python)
|
||||
|
||||
Le projet utilise **`uv`** comme gestionnaire de paquets Python. L'environnement virtuel est dans `.venv` a la racine du projet.
|
||||
|
||||
```bash
|
||||
# IMPORTANT : Toujours utiliser uv, jamais pip directement
|
||||
# L'environnement virtuel est deja dans .venv/
|
||||
|
||||
# Installer les dependances Python
|
||||
uv pip install -e ./crates/bindings/python
|
||||
|
||||
# Lancer un script Python avec le bon env
|
||||
uv run python mon_script.py
|
||||
|
||||
# Ou activer le venv manuellement si necessaire
|
||||
source .venv/bin/activate # Linux/Mac
|
||||
.venv\Scripts\activate # Windows
|
||||
|
||||
# Installer maturin (pour build les bindings Rust→Python)
|
||||
uv pip install maturin
|
||||
|
||||
# Build et installer les bindings en mode dev
|
||||
uv run maturin develop --release
|
||||
|
||||
# Lancer les tests Python
|
||||
uv run pytest crates/bindings/python/tests/
|
||||
```
|
||||
|
||||
## Code Standards
|
||||
|
||||
- **Language**: Rust with strict type safety
|
||||
|
||||
Reference in New Issue
Block a user