add inline dependencies #269

Open
Alistair1231 wants to merge 2 commits from Alistair1231/inline-dependencies into main
Showing only changes of commit 72e849cc49 - Show all commits
+7
View File
@@ -1,4 +1,11 @@
#!/usr/bin/env python3
# /// script
# dependencies = [
# "tqdm",
# "requests",
# "InquirerPy"
# ]
# ///
from InquirerPy import inquirer
copilot-pull-request-reviewer[bot] commented 2026-04-06 07:34:04 -04:00 (Migrated from github.com)
Review

The inline # /// script metadata is parsed as TOML (PEP 723 style). In a TOML array, items must be comma-separated; as written, the dependencies = [ block is invalid and tools like uv run --script will fail to parse it. Add commas between the dependency strings (a trailing comma is also fine).

#   "InquirerPy",
The inline `# /// script` metadata is parsed as TOML (PEP 723 style). In a TOML array, items must be comma-separated; as written, the `dependencies = [` block is invalid and tools like `uv run --script` will fail to parse it. Add commas between the dependency strings (a trailing comma is also fine). ```suggestion # "InquirerPy", ```
from InquirerPy.base.control import Choice
from InquirerPy.separator import Separator
copilot-pull-request-reviewer[bot] commented 2026-04-06 07:34:05 -04:00 (Migrated from github.com)
Review

This introduces a second source of truth for runtime dependencies (inline here and also in requirements.txt). That duplication can drift over time and cause confusing install/runtime mismatches. Consider either generating/deriving one from the other, or documenting which one is authoritative (and when each should be updated).


This introduces a second source of truth for runtime dependencies (inline here and also in `requirements.txt`). That duplication can drift over time and cause confusing install/runtime mismatches. Consider either generating/deriving one from the other, or documenting which one is authoritative (and when each should be updated). ```suggestion ```