Files
work_template/contour/versions.md
Svyatoslav Rudchenko 13d4be5464 feat: универсальный шаблон проектов контура Raisa
- base_templates/: шаблоны платформы fastapi, streamlit, airflow без изменений
- contour/: платформа, подтверждённые версии, грабли, профили 4 типов приложений
- project-kit/: SDD (S/M/L, delta/spec/plan, constitution, DoR/DoD) + grill,
  критик тестов, UX gate, handoff; один канон AGENTS.md для Cursor и Claude Code
- scripts/init_project.sh: сборка нового проекта или подключение kit к существующему
- docs/decisions/0001: что перенесено из elite_vibecoding и dmukp и почему

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0139EkK4ShEj52pM9Z5UCwM1
2026-11-09 17:44:48 +03:00

105 lines
3.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Версии библиотек, подтверждённые в контуре
Источник истины для агентов: **писать код под эти версии**, не под «последние».
Колонка «Шаблон» — базовый шаблон платформы; «Боевое» — версия, которая уже прошла деплой в эталонном приложении (значит, есть в Nexus).
Новая версия попадает сюда только после деплоя или `pip install` в JupyterHub — с датой.
Обновлено: 2026-11-09.
## Python
| | Версия | Откуда |
|--|--------|--------|
| FastAPI (бэк) | 3.11 | локальный Dockerfile `fastapi_dkr_frm_dev_backend` |
| Airflow | 3.12 (target black) | `dag_38834/pyproject.toml` |
## FastAPI — бэкенд (`api/requirements.txt`)
| Пакет | Шаблон | Боевое (`fastapi_dkr_frm_dev_backend`) |
|-------|--------|----------------------------------------|
| fastapi | 0.115.7 | 0.116.1 |
| pydantic | 2.10.6 | 2.12.5 |
| pydantic-settings | 2.7.1 | 2.12.0 |
| uvicorn | 0.34.0 | 0.37.0 |
| starlette | 0.45.3 | (транзитивно) |
| python-dotenv | 1.0.1 | 1.2.1 |
| python-multipart | 0.0.20 | 0.0.27 |
| email_validator | 2.2.0 | 2.2.0 |
| httpx | 0.27.2 | 0.28.1 |
| openpyxl | 3.1.5 | 3.1.5 |
| orjson / ujson | 3.10.15 / 5.10.0 | — |
| sqlalchemy | — | 2.0.45 |
| alembic | — | 1.16.1 |
| asyncpg | — | 0.30.0 |
| psycopg2-binary | — | 2.9.10 |
| pandas | — | 3.0.1 |
| PyJWT | — | 2.8.0 |
| cryptography | — | 42.0.8 |
| miniopy-async | — | 1.23.4 |
| pytest | — | 9.0.2 |
| factory_boy / faker | — | 3.3.3 / 40.1.2 |
PostgreSQL локально: `postgres:15` / `postgres:15-alpine`.
## FastAPI — фронтенд (`web/package.json`)
| Пакет | Шаблон | Боевое (`fastapi_dkr_frm_dev`) |
|-------|--------|--------------------------------|
| react / react-dom | ^18.3.1 | 18.3.1 |
| typescript | ^5.7.3 | 5.7.3 |
| @rsbuild/core | ^1.2.4 | 1.2.4 |
| @rsbuild/plugin-react | ^1.1.0 | 1.1.0 |
| @biomejs/biome | 1.9.4 | 1.9.4 |
| tailwindcss | ^3.4.13 | 3.4.13 |
| daisyui | ^4.12.10 | 4.12.10 |
| react-daisyui | ^5.0.5 | 5.0.5 |
| raisa-ui | ^1.0.0 | — |
| antd | — | 6.3.0 |
| axios | — | 1.13.5 |
| react-router-dom | — | 7.13.0 |
| zustand | — | 5.0.11 |
| recharts | — | 3.10.0 |
| raisa-fastapi-protected-web | — | от платформы (не в package.json) |
Node локально: `node:18-alpine`. Версии во фронте фиксировать точно (без `^`), как в боевом.
## Streamlit (`requirements.txt`)
| Пакет | Шаблон | Боевое (`SVA_1745`) |
|-------|--------|---------------------|
| streamlit | из `streamlit-app-base:2.1.0` | 1.40.1 |
| streamlit-oauth | 0.1.8 | — |
| pyjwt[crypto] | 2.8.0 | — |
| python-decouple | 3.8 | — |
| openpyxl | 3.1.2 | 3.1.5 |
| pandas | — | 2.2.3 |
| matplotlib | — | 3.9.2 |
| st-theme | — | 1.2.3 |
| pytest | — | 8.3.4 |
## Airflow (`requirements.txt` / `requirements-dev.txt`)
| Пакет | Шаблон | Боевое (`dag_38834`) |
|-------|--------|----------------------|
| apache-airflow (dev, для локалки) | 2.9.2 | 2.9.2 |
| hydra-core | 1.3.2 | 1.3.2 |
| omegaconf | — | 2.3.0 |
| SQLAlchemy | — | 2.0.36 |
| alembic | — | 1.14.0 |
| psycopg2-binary | — | 2.9.9 |
| pytest | 8.2.2 | 8.2.2 |
| python-dotenv | — | 1.0.1 |
Airflow 2.9 API: `schedule_interval`, `DummyOperator`, `PythonVirtualenvOperator` — не писать под Airflow 3.
## Линтеры
| Инструмент | Шаблоны | Боевое |
|------------|---------|--------|
| black | 24.4.2 | pre-commit rev 26.5.1 (бэк), line-length 90 |
| isort | 5.13.2 | profile black |
| flake8 | 7.0.0 | 7.4.1, max-line 90 |
| pylint | 3.2.3 | — |
| pre-commit | — | 3.7.1 (airflow) |
| bandit / autoflake | — | 1.9.4 / 2.4.0 (бэк) |