Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions parallel_web_tools/cli/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,12 @@ def parse_inline_data(data_json: str) -> tuple[str, list[dict[str, str]]]:
raise click.BadParameter("Data must be an array of objects")

# Infer columns from the first row
columns = list(data[0].keys())
columns: list[str] = [str(k) for k in data[0].keys()]
if not columns:
raise click.BadParameter("Data objects must have at least one field")

# Create source_columns with inferred descriptions
source_columns = [{"name": col, "description": f"The {col} field"} for col in columns]
source_columns: list[dict[str, str]] = [{"name": col, "description": f"The {col} field"} for col in columns]

# Write to a temporary CSV file
temp_file = tempfile.NamedTemporaryFile(mode="w", suffix=".csv", delete=False, newline="")
Expand Down
16 changes: 8 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ all = [
# Development
dev = [
"parallel-web-tools[all,spark]",
"pytest>=8.0.0",
"pytest-cov>=4.0.0",
"pyinstaller>=6.0.0",
"pre-commit>=4.0.0",
"ruff>=0.14.0",
"ty>=0.0.21",
"pytest>=9.0.0",
"pytest-cov>=7.0.0",
"pyinstaller>=6.20.0",
"pre-commit>=4.6.0",
"ruff>=0.15.0",
"ty>=0.0.33",
]

[tool.hatch.build.targets.wheel]
Expand Down Expand Up @@ -162,6 +162,6 @@ known-first-party = ["parallel_web_tools"]

[dependency-groups]
dev = [
"ipykernel>=7.1.0",
"ty>=0.0.21",
"ipykernel>=7.2.0",
"ty>=0.0.33",
]
Loading
Loading