Conversation
* Enhance reading from .python-version * Fix typos * Fix lint * Add built files * Don't use EOL versions in `utils.test.ts` * Fix Prettier * Don't use unreleased versions in `utils.test.ts` * Update versions in `utils.test.ts` again
|
🚨 gitStream Monthly Automation Limit Reached 🚨 Your organization has exceeded the number of pull requests allowed for automation with gitStream. To continue automating your PR workflows and unlock additional features, please contact LinearB. |
Reviewer's GuideThis PR refactors the plain-file version resolver to support multiple versions per file, updates all calls/imports to use the new function, adds corresponding test coverage for multiline and complex cases, and corrects a typo in debug messages. Flowchart: Logic of getVersionsInputFromPlainFilegraph TD
A["Start: getVersionsInputFromPlainFile(versionFile)"] --> B{"Read file content (fs.readFileSync)"};
B --> C["Trim content"];
C --> D["Split content into lines (by \\n, \\r\\n, \\r)"];
D --> E{"For each line"};
E -- "Line is empty or starts with '#'" --> F["Ignore line (filter out)"];
E -- "Valid line" --> G["Trim line"];
G --> H["Extract version (split by '/' and take first part)"];
H --> I["Add version to results array"];
F --> J["Next line / End loop"];
I --> J;
J -- "More lines" --> E;
J -- "No more lines" --> K["Return versions array"];
K --> Z["End"];
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.1)
Can you help keep this open source service alive? 💖 Please sponsor : )
Summary by Sourcery
Enable support for reading multiple Python versions from plain text files by renaming and enhancing the version-input parsing logic, updating references and tests accordingly.
New Features:
Enhancements:
Build:
Tests: