Skip to content

Commit 717745e

Browse files
style(csv): format files with black
1 parent 3ff80ba commit 717745e

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

application/utils/spreadsheet_parsers.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,15 @@ def is_empty(value: Optional[str]) -> bool:
135135
)
136136

137137

138-
def validate_export_csv_rows(rows: List[Dict[str, Any]]) -> List[Dict[str, Any]]:
138+
def validate_import_csv_rows(rows: List[Dict[str, Any]]) -> List[Dict[str, Any]]:
139+
"""
140+
Entry point for parsing imported CSV files.
141+
142+
CSV validation is handled at the parser level.
143+
Structural and row-level validation rules are implemented in
144+
"validate_import_csv_rows", which is invoked internally
145+
before parsing proceeds.
146+
"""
139147
if not rows:
140148
raise ValueError("Invalid CSV format or missing data rows")
141149

migrations/versions/7a17989aa1e3_first_migration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""First Migration
22
33
Revision ID: 7a17989aa1e3
4-
Revises:
4+
Revises:
55
Create Date: 2021-08-31 19:23:49.227719
66
77
"""

0 commit comments

Comments
 (0)