-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Crash/Regression - 0.930 no longer accepts multiline basic strings for exclude
patterns in pyproject.toml
#11825
Labels
Comments
This was referenced Dec 22, 2021
I'm pretty sure this is the root cause. This works: # pyproject.toml
[tool.mypy]
exclude = """
(^|/)build/
""" That's weird, though. I would have expected that expressing multiple # pyproject.toml
[tool.mypy]
exclude = [
"(^|/)build/",
"…",
] To be fair, it appears no TOML-specific example appears in the docs. |
posita
changed the title
Crash/regression in 0.930 no longer accepts multiline basic strings for
Crash/Regression - 0.930 no longer accepts multiline basic strings for Dec 22, 2021
exclude
patterns in pyproject.toml
exclude
patterns in pyproject.toml
posita
added a commit
to posita/mypy
that referenced
this issue
Dec 22, 2021
Multiple regexes are expressed as a sequence. Fixes python#11825.
This was referenced Dec 22, 2021
posita
added a commit
to posita/mypy
that referenced
this issue
Dec 22, 2021
Multiple regexes are expressed as a sequence. Fixes python#11825.
posita
added a commit
to posita/mypy
that referenced
this issue
Dec 22, 2021
Multiple regexes are expressed as a sequence. Fixes python#11825.
posita
added a commit
to posita/mypy
that referenced
this issue
Dec 23, 2021
Multiple regexes are expressed as a sequence. Fixes python#11825.
posita
added a commit
to posita/mypy
that referenced
this issue
Dec 23, 2021
Multiple regexes are expressed as a sequence. Fixes python#11825.
tushar-deepsource
pushed a commit
to DeepSourceCorp/mypy
that referenced
this issue
Jan 20, 2022
…ude` in TOML files (python#11828) Multiple regexes are expressed as a sequence. Fixes python#11825. Co-authored-by: Matthew W <matthew@willcockson.family> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Crash Report
Anyone using a multiline basic string to define a regex for
exclude
such as above (source) will have to rewrite their regex to no longer span multiple lines:I believe this was working up through 0.921. I have not yet confirmed whether this has anything to do with #11329.
Traceback
To Reproduce
mypy [--config-file=pyproject.toml] …
Your Environment
mypy [--config-file=pyproject.toml] …
pyproject.toml
:exclude
(file is above)The text was updated successfully, but these errors were encountered: