fix(700줄분리): 진입 파일에서 분리 전 이름 전부 재노출
laptop-sub 가 쓴 AST 대조법(분리 전 커밋의 모듈 정의 이름 ↔ 지금 모듈 `dir()`)을 내 4개에도 적용해 누락 26개를 찾아 되살림. - `B03_FileInput_Router.py` 누락 17 → 0 (헬퍼 13 + 청크 엔드포인트 4) - `B03_FileInput_Router_Temp.py` 누락 5 → 0 (`_total_chunks` + 청크 엔드포인트 4) - `B07_DesignDetail_Router_Support.py` 누락 3 → 0 (`_BASIN_MAX_DISTANCE_M` · `_clip_segment` · `_geometry_lines`) - `config/config_system.py` 누락 1 → 0 (`_SCS_SOIL` — `import *` 가 밑줄 이름을 안 실음) 검증: 네 파일 모두 **정의 이름 누락 0**(28·19·36·246개 대조), 라우트 수 유지 (B03 7 · temp 9+attach 1 · B07 7), ruff check 통과, tmp/tests 378 passed Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -23,14 +23,76 @@ from B03_FileInput.B03_FileInput_Repository import (
|
||||
list_incomplete_upload_sessions,
|
||||
list_project_input_files,
|
||||
)
|
||||
|
||||
# 분리 전 이 파일에 있던 이름은 그대로 다시 내보낸다 — 옛 이름을 참조하는
|
||||
# 테스트·스크립트가 깨지지 않게 하기 위함이다(2026-09-04).
|
||||
from B03_FileInput.B03_FileInput_Router_Chunks import (
|
||||
create_project_upload_session as create_project_upload_session,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Chunks import (
|
||||
finalize_project_upload as finalize_project_upload,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Chunks import (
|
||||
get_project_upload_status as get_project_upload_status,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Chunks import router as chunk_router
|
||||
from B03_FileInput.B03_FileInput_Router_Chunks import (
|
||||
upload_project_chunk as upload_project_chunk,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Errors import lookup_error_response
|
||||
from B03_FileInput.B03_FileInput_Router_Helpers import (
|
||||
_REQUIRED_FILE_TYPES,
|
||||
_complete_file_input_if_ready,
|
||||
_missing_required_file_types,
|
||||
_schedule_background_task,
|
||||
_write_stage_metadata,
|
||||
_ANALYSIS_RUNNING_MESSAGE as _ANALYSIS_RUNNING_MESSAGE,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Helpers import (
|
||||
_BACKGROUND_TASKS as _BACKGROUND_TASKS,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Helpers import (
|
||||
_POINT_CLOUD_FILE_TYPES as _POINT_CLOUD_FILE_TYPES,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Helpers import (
|
||||
_REQUIRED_FILE_TYPES as _REQUIRED_FILE_TYPES,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Helpers import (
|
||||
_ROUTE_FILE_TYPES as _ROUTE_FILE_TYPES,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Helpers import (
|
||||
_SHAPEFILE_REQUIRED_TYPES as _SHAPEFILE_REQUIRED_TYPES,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Helpers import (
|
||||
_already_uploaded as _already_uploaded,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Helpers import (
|
||||
_complete_file_input_if_ready as _complete_file_input_if_ready,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Helpers import (
|
||||
_get_project_notification_info as _get_project_notification_info,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Helpers import (
|
||||
_is_point_cloud_result as _is_point_cloud_result,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Helpers import (
|
||||
_missing_required_file_types as _missing_required_file_types,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Helpers import (
|
||||
_require_complete_file_set as _require_complete_file_set,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Helpers import (
|
||||
_schedule_background_task as _schedule_background_task,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Helpers import (
|
||||
_send_upload_complete_notification as _send_upload_complete_notification,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Helpers import (
|
||||
_stored_fingerprint as _stored_fingerprint,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Helpers import (
|
||||
_total_chunks as _total_chunks,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Helpers import (
|
||||
_update_project_status as _update_project_status,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Helpers import (
|
||||
_write_stage_metadata as _write_stage_metadata,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Schema import (
|
||||
FileUploadDescriptor,
|
||||
|
||||
@@ -40,12 +40,35 @@ from B03_FileInput.B03_FileInput_Repository_Temp import (
|
||||
upsert_temp_batch_file,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Errors import lookup_error_response
|
||||
|
||||
# 분리 전 이 파일에 있던 이름은 그대로 다시 내보낸다(2026-09-04).
|
||||
from B03_FileInput.B03_FileInput_Router_Temp_Chunks import (
|
||||
create_batch_upload_session as create_batch_upload_session,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Temp_Chunks import (
|
||||
finalize_batch_upload as finalize_batch_upload,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Temp_Chunks import (
|
||||
get_batch_upload_status as get_batch_upload_status,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Temp_Chunks import router as chunk_router
|
||||
from B03_FileInput.B03_FileInput_Router_Temp_Chunks import (
|
||||
upload_batch_chunk as upload_batch_chunk,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Temp_Support import (
|
||||
_POINT_CLOUD_FILE_TYPES,
|
||||
_batch_root,
|
||||
_iso,
|
||||
_refresh_batch_status,
|
||||
_POINT_CLOUD_FILE_TYPES as _POINT_CLOUD_FILE_TYPES,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Temp_Support import (
|
||||
_batch_root as _batch_root,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Temp_Support import (
|
||||
_iso as _iso,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Temp_Support import (
|
||||
_refresh_batch_status as _refresh_batch_status,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Router_Temp_Support import (
|
||||
_total_chunks as _total_chunks,
|
||||
)
|
||||
from B03_FileInput.B03_FileInput_Schema import (
|
||||
FileUploadDescriptor,
|
||||
|
||||
@@ -36,6 +36,9 @@ from B07_DesignDetail.B07_DesignDetail_Engine_Cad_Table import (
|
||||
QUANTITY_VALUE_KEYS,
|
||||
)
|
||||
from B07_DesignDetail.B07_DesignDetail_Engine_Template import add_title_fields
|
||||
from B07_DesignDetail.B07_DesignDetail_Router_Support_Basin import (
|
||||
_BASIN_MAX_DISTANCE_M as _BASIN_MAX_DISTANCE_M,
|
||||
)
|
||||
|
||||
# 유역도 배경·파일 입출력 조각은 700줄 제한으로 떼어냈다(2026-09-04).
|
||||
# 여기서 그대로 다시 내보내 호출부(`B07_DesignDetail_Router.py`)의 import 경로는 불변이다.
|
||||
@@ -48,12 +51,18 @@ from B07_DesignDetail.B07_DesignDetail_Router_Support_Basin import (
|
||||
from B07_DesignDetail.B07_DesignDetail_Router_Support_Basin import (
|
||||
_basins_crs as _basins_crs,
|
||||
)
|
||||
from B07_DesignDetail.B07_DesignDetail_Router_Support_Basin import (
|
||||
_clip_segment as _clip_segment,
|
||||
)
|
||||
from B07_DesignDetail.B07_DesignDetail_Router_Support_Basin import (
|
||||
_geojson_features as _geojson_features,
|
||||
)
|
||||
from B07_DesignDetail.B07_DesignDetail_Router_Support_Basin import (
|
||||
_geojson_payload as _geojson_payload,
|
||||
)
|
||||
from B07_DesignDetail.B07_DesignDetail_Router_Support_Basin import (
|
||||
_geometry_lines as _geometry_lines,
|
||||
)
|
||||
from B07_DesignDetail.B07_DesignDetail_Router_Support_Basin import (
|
||||
_too_far_from_route as _too_far_from_route,
|
||||
)
|
||||
|
||||
@@ -111,6 +111,7 @@ AUTO_DESIGN_CHAIN_ENABLED = os.getenv("AUTO_DESIGN_CHAIN_ENABLED", "True").lower
|
||||
# 5장(지형·설계 파라미터)은 파일이 700줄을 넘어 떼어냈다(2026-09-04).
|
||||
# 여기서 그대로 다시 내보내므로 `from config.config_system import …` 호출부는 불변이다.
|
||||
from config.config_system_design import * # noqa: E402,F401,F403
|
||||
from config.config_system_design import _SCS_SOIL as _SCS_SOIL # noqa: E402
|
||||
from config.config_system_terrain import * # noqa: E402,F401,F403
|
||||
|
||||
# ─────────────────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user