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
This commit is contained in:
28
base_templates/airflow/.gitignore
vendored
Normal file
28
base_templates/airflow/.gitignore
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
*.env
|
||||
.idea/
|
||||
.vscode/
|
||||
.DS_Store
|
||||
cython_debug/
|
||||
# /data/
|
||||
*.log
|
||||
venv/
|
||||
/.venv/
|
||||
*.pyc
|
||||
.cache
|
||||
__pycache__/
|
||||
.ipynb_checkpoints
|
||||
profile_default/
|
||||
ipython_config.py
|
||||
.mypy_cache/
|
||||
.dmypy.json
|
||||
dmypy.json
|
||||
.pyre/
|
||||
.pytype/
|
||||
*.cover
|
||||
cover/
|
||||
.coverage
|
||||
.coverage.*
|
||||
nosetests.xml
|
||||
coverage.xml
|
||||
.hypothesis/
|
||||
.pytest_cache/
|
||||
4
base_templates/airflow/.gitlab-ci.yml
Normal file
4
base_templates/airflow/.gitlab-ci.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
include:
|
||||
- project: 'cicd/ci'
|
||||
file: 'dags-deploy.yml'
|
||||
|
||||
47
base_templates/airflow/README.md
Normal file
47
base_templates/airflow/README.md
Normal file
@@ -0,0 +1,47 @@
|
||||
[](https://github.com/psf/black) [](https://pycqa.github.io/isort/) [](https://github.com/pylint-dev/pylint)
|
||||
__________________________________________________________________________________________________________
|
||||
# dzo_38834, v 0.0.1
|
||||
__asdfqwer__
|
||||
|
||||
| | Исполнитель | Заказчик |
|
||||
|-----------|:----------------------------------------:|:----------------------------------------------:|
|
||||
| Сотрудник | rudchenko-sni | rudchenko-sni |
|
||||
| Отдел | aurora | aurora |
|
||||
| Контакты | rudchenkosni@rshb.ru | rudchenkosni@rshb.ru |
|
||||
-----
|
||||
### Структура проекта:
|
||||

|
||||
### Рабочий процесс:
|
||||
1. Клонируем репозиторий
|
||||
```commandline
|
||||
git@<gitlab_url>:<group_name>/<project_name>.git
|
||||
```
|
||||
2. Создаем виртуальное окружение
|
||||
```commandline
|
||||
python -m venv venv
|
||||
source venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
Если что-то устанавливаем, не забываем обновлять список зависимостей
|
||||
```commandline
|
||||
pip freeze -l > requirements.txt
|
||||
```
|
||||
3. Создаем feature ветку
|
||||
```commandline
|
||||
git checkout -b "feature-<task_number>-<short_task_description>"
|
||||
```
|
||||
4. Пишем свой код. Коммитим изменения
|
||||
```commandline
|
||||
git add .
|
||||
git commit -m "<commit_message>"
|
||||
```
|
||||
Как писать хорошие коммит сообщения:
|
||||
https://www.conventionalcommits.org/ru/v1.0.0/
|
||||
|
||||
5. Пушим изменения в Gitlab
|
||||
```commandline
|
||||
git push origin
|
||||
```
|
||||
6. Создаем Merge Request в master
|
||||
7. Проходим код-ревью с коллегами
|
||||
8. Мерджите
|
||||
5
base_templates/airflow/conf/config.yaml
Normal file
5
base_templates/airflow/conf/config.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
defaults:
|
||||
- _self_
|
||||
- env: ???
|
||||
|
||||
project_path: ???
|
||||
0
base_templates/airflow/conf/env/dev.yaml
vendored
Normal file
0
base_templates/airflow/conf/env/dev.yaml
vendored
Normal file
0
base_templates/airflow/conf/env/prod.yaml
vendored
Normal file
0
base_templates/airflow/conf/env/prod.yaml
vendored
Normal file
0
base_templates/airflow/conf/env/test.yaml
vendored
Normal file
0
base_templates/airflow/conf/env/test.yaml
vendored
Normal file
0
base_templates/airflow/dags/.gitkeep
Normal file
0
base_templates/airflow/dags/.gitkeep
Normal file
12
base_templates/airflow/dags/loader_script.py
Normal file
12
base_templates/airflow/dags/loader_script.py
Normal file
@@ -0,0 +1,12 @@
|
||||
#loader-script для парсинга Airflow DAG's из директории ./yaml_dags
|
||||
|
||||
from dagfactory import load_yaml_dags
|
||||
import os
|
||||
|
||||
DAGS_FOLDER = os.path.dirname(os.path.abspath(__file__))
|
||||
YAML_DAGS_FOLDER = os.path.join(DAGS_FOLDER, "yaml_dags")
|
||||
|
||||
load_yaml_dags(
|
||||
globals_dict=globals(),
|
||||
dags_folder=YAML_DAGS_FOLDER,
|
||||
)
|
||||
0
base_templates/airflow/dags/yaml_dags/.gitkeep
Normal file
0
base_templates/airflow/dags/yaml_dags/.gitkeep
Normal file
0
base_templates/airflow/dq/.gitkeep
Normal file
0
base_templates/airflow/dq/.gitkeep
Normal file
0
base_templates/airflow/include/python/.gitkeep
Normal file
0
base_templates/airflow/include/python/.gitkeep
Normal file
0
base_templates/airflow/include/sql/.gitkeep
Normal file
0
base_templates/airflow/include/sql/.gitkeep
Normal file
0
base_templates/airflow/models/.gitkeep
Normal file
0
base_templates/airflow/models/.gitkeep
Normal file
0
base_templates/airflow/notebooks/.gitkeep
Normal file
0
base_templates/airflow/notebooks/.gitkeep
Normal file
0
base_templates/airflow/packages.txt
Normal file
0
base_templates/airflow/packages.txt
Normal file
2
base_templates/airflow/raisa_config.yml
Normal file
2
base_templates/airflow/raisa_config.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
# Конфигурация для развертывания ML-моделей в RAISA
|
||||
models: []
|
||||
7
base_templates/airflow/requirements-dev.txt
Normal file
7
base_templates/airflow/requirements-dev.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
apache-airflow==2.9.2
|
||||
hydra-core==1.3.2
|
||||
black[all]==24.4.2
|
||||
flake8==7.0.0
|
||||
isort==5.13.2
|
||||
pylint==3.2.3
|
||||
pytest==8.2.2
|
||||
6
base_templates/airflow/requirements.txt
Normal file
6
base_templates/airflow/requirements.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
hydra-core==1.3.2
|
||||
black[all]==24.4.2
|
||||
flake8==7.0.0
|
||||
isort==5.13.2
|
||||
pylint==3.2.3
|
||||
pytest==8.2.2
|
||||
0
base_templates/airflow/tests/.gitkeep
Normal file
0
base_templates/airflow/tests/.gitkeep
Normal file
Reference in New Issue
Block a user