파이프라인 변환 베이스라인과 문서 추가#9
Draft
SakJaeLim wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
개요
이번 PR은 기존 yfinance 수집기와
OhlcvRecord이후 단계에서 바로 사용할 수 있는 파이프라인 변환 계층과 설계 문서를 추가합니다.변경 사항
pipeline/transforms/finance_metrics.py추가pipeline/transforms/nlp_rules.py추가data/seed/news_seed.csv추가docs/data_pipeline_design.md,docs/data_contract.md추가candles모델과OhlcvRecord를 기준으로 설계했습니다.README에 개발 문서 링크 추가
신규 단위 테스트 추가
반영 이유
현재 저장소에는 yfinance 기반 OHLCV 수집기와 Candle 저장소 구조가 이미 있으므로, 같은 수집기를 다시 만드는 것보다 수집 이후 단계인 변환 계층을 먼저 추가하는 것이 더 안전합니다.
이번 변경은 DB 연결이나 외부 API 호출 없이 동작하는 순수 함수 중심이라, 이후 Kafka consumer, Spark job, API service, Neo4j graph loader 어디에서도 재사용하기 쉽습니다.
검증
.\.venv\Scripts\python.exe -m pytest tests.\.venv\Scripts\python.exe -m ruff check pipeline\transforms tests\unit\test_finance_metrics.py tests\unit\test_nlp_rules.py.\.venv\Scripts\python.exe -m compileall pipeline tests참고 사항
전체
ruff check .는 이번 PR 범위 밖의 기존 파일에서 import 정렬과 긴 줄 이슈가 있어 실패합니다. 해당 파일들은 기존 코드이므로 이번 PR에서는 수정하지 않았습니다.대상 파일 예시:
app/core/config.pyapp/core/database.pypipeline/collectors/stock_data_collector.py