Files
Multi_Swarm_Coevolutive/pyproject.toml
T
Adriano Dal Pastro 8caa526727 test(strategy_crypto): smoke regression + import-mode importlib per workspace
NEW src/strategy_crypto/tests/test_imports.py:
- test_backend_imports — verifica re-export PaperExecutor/Portfolio/PaperRepository + schema
- test_frontend_imports — strategy_crypto.frontend.{data,nicegui_app} importabili
- test_strategies_json_loadable — i JSON sono in importlib.resources e ben formati
- test_init_schema_creates_tables — PaperRepository.init_schema() crea 5 tabelle

Fix pytest collection: add --import-mode=importlib agli addopts per evitare
collisione dei due tests/__init__.py (core + strategy_crypto) sotto stesso
nome module 'tests'.

Verifica: uv run pytest → 186 passed (182 core + 4 strategy_crypto)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 18:01:30 +00:00

46 lines
1.1 KiB
TOML

[project]
name = "multi-swarm-coevolutive"
version = "0.1.0"
description = "Multi-Swarm Coevolutive: monorepo workspace (core + strategie)"
authors = [{ name = "Adriano Dal Pastro", email = "adrianodalpastro@tielogic.com" }]
requires-python = ">=3.13"
[tool.uv.workspace]
members = ["src/multi_swarm_core", "src/strategy_crypto"]
[tool.uv.sources]
multi-swarm-core = { workspace = true }
strategy-crypto = { workspace = true }
[dependency-groups]
dev = [
"pytest>=8.3",
"pytest-mock>=3.14",
"pytest-asyncio>=0.24",
"responses>=0.25",
"ruff>=0.7",
"mypy>=1.13",
"types-requests>=2.32",
"multi-swarm-core",
"strategy-crypto",
]
[tool.ruff]
line-length = 100
target-version = "py313"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "RUF"]
[tool.mypy]
python_version = "3.13"
strict = true
[tool.pytest.ini_options]
testpaths = ["src/multi_swarm_core/tests", "src/strategy_crypto/tests"]
addopts = "-v --tb=short --import-mode=importlib"
markers = [
"integration: tests that require external services (Cerbero, LLM API)",
"slow: tests that take more than 5 seconds",
]