-
-
Notifications
You must be signed in to change notification settings - Fork 521
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
Require space after colon before factor expansion #2822
Conversation
Confirmed this change fixes #2821. Now, there are other unit tests to adapt. On it... |
… it is the last character of the line
for more information, see https://pre-commit.ci
@@ -50,7 +50,7 @@ def expand_factors(value: str) -> Iterator[tuple[list[list[tuple[str, bool]]] | | |||
for line in value.split("\n"): | |||
factors: list[list[tuple[str, bool]]] | None = None | |||
marker_at, content = line.find(":"), line | |||
if marker_at != -1: | |||
if marker_at != -1 and (len(line) == marker_at + 1 or line[marker_at + 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.
@gaborbernat Should tabs be accepted too?
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.
Sure
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.
Submitted #2823
This PR contains the following updates: | Package | Type | Update | Change | Pending | |---|---|---|---|---| | [tox](https://github.com/tox-dev/tox) ([changelog](https://tox.wiki/en/latest/changelog.html)) | dev | patch | `4.2.2` -> `4.2.3` | `4.3.5` (+10) | --- ### Release Notes <details> <summary>tox-dev/tox</summary> ### [`v4.2.3`](https://github.com/tox-dev/tox/releases/tag/4.2.3) [Compare Source](https://github.com/tox-dev/tox/compare/4.2.2...4.2.3) #### What's Changed - Require space after colon before factor expansion by [@​pdecat](https://github.com/pdecat) in [https://github.com/tox-dev/tox/pull/2822](https://github.com/tox-dev/tox/pull/2822) - Fix devenv when package for env is wheel/editable by [@​gaborbernat](https://github.com/gaborbernat) in [https://github.com/tox-dev/tox/pull/2820](https://github.com/tox-dev/tox/pull/2820) **Full Changelog**: tox-dev/tox@4.2.2...4.2.3 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC45OS4yIiwidXBkYXRlZEluVmVyIjoiMzQuOTkuMiJ9--> Co-authored-by: descope[bot] <descope[bot]@users.noreply.github.com>
Thanks for contribution
Please, make sure you address all the checklists (for details on how see
development documentation)!
tox -e fix
)docs/changelog
folderResolves #2821, and probably also #2817