-
-
Notifications
You must be signed in to change notification settings - Fork 2
test: Update requirements.txt #159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,5 +1,5 @@ | ||||||
| # Install commit-check CLI | ||||||
| # For details please see: https://github.com/commit-check/commit-check | ||||||
| commit-check==2.1.1 | ||||||
| git+https://github.com/commit-check/commit-check.git@feature/support-github-user-to-get-env | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainFeature branch dependency is not production-ready for a GitHub Action. Using
Additionally, the Git URL format should follow PEP 440 by including the package name: For reproducibility and stability, pin to a specific commit hash rather than a branch name. Consider whether this change should merge to main, or if it's temporary for testing issue #156. Suggested format if committing to main: -git+https://github.com/commit-check/commit-check.git@feature/support-github-user-to-get-env
+commit-check @ git+https://github.com/commit-check/commit-check.git@<COMMIT_HASH>Or, if reverting to PyPI after testing: -git+https://github.com/commit-check/commit-check.git@feature/support-github-user-to-get-env
+commit-check==2.1.1I'll verify the key claims in the review comment by gathering information about pip dependency formats and the codebase context. 🏁 Script executed: #!/bin/bash
# Check the full requirements.txt file and surrounding context
if [ -f "requirements.txt" ]; then
echo "=== requirements.txt content ==="
cat requirements.txt
echo ""
echo "=== file metadata ==="
wc -l requirements.txt
else
echo "requirements.txt not found"
fiLength of output: 312 🌐 Web query: 💡 Result: Short answer: Yes — when using PEP 440 "direct references" as dependency specifiers (the supported form for install_requires / pyproject dependencies / PEP 508), you must include the package name: use "PackageName @ ". PEP 440 defines the "name @ URL" direct-reference form, and setuptools / modern tooling expect "Package @ git+https://…". Pip historically accepts legacy VCS URLs like git+https://... and can infer a name from a #egg= fragment for installs, but the canonical PEP‑440/PEP‑508 style is "Name @ URL" and omitting the name is not supported for dependency fields. [1][2][3][4] Sources:
🌐 Web query: 💡 Result: The current PyPI version of the commit-check package is 2.1.0 — uploaded Oct 20, 2025. [1] Sources
🌐 Web query: 💡 Result: Short answer: the old "legacy" way (git+https://...#egg=Name or #egg=Name&subdirectory=...) is still supported by many pip versions but causes compatibility problems with newer packaging standards. Use the PEP‑508 direct-reference form "Name @ git+https://..." (and subdirectory= when needed) for best compatibility with modern pip, pip-tools, and pyproject-based builds. Key points and examples
Recommendations
Sources
Feature branch dependency is not production-ready for a GitHub Action, and the format needs correction. Using
The Git URL format must also follow PEP 440 by including the package name: For reproducibility and stability, pin to a specific commit hash rather than a branch name. Consider whether this change should merge to main, or if it's temporary for testing. Suggested format if committing to main: -git+https://github.com/commit-check/commit-check.git@feature/support-github-user-to-get-env
+commit-check @ git+https://github.com/commit-check/commit-check.git@<COMMIT_HASH>Or, if reverting to PyPI after testing: -git+https://github.com/commit-check/commit-check.git@feature/support-github-user-to-get-env
+commit-check==2.1.0📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| # Interact with the GitHub API. | ||||||
| PyGithub==2.8.1 | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update misleading comment on line 51.
The comment says "Install artifacts" but the code now installs from requirements.txt. Update for clarity:
📝 Committable suggestion
🤖 Prompt for AI Agents