Skip to content
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

Creates invalid syntax in the presence of raw strings #22

Open
flying-sheep opened this issue Nov 22, 2024 · 0 comments
Open

Creates invalid syntax in the presence of raw strings #22

flying-sheep opened this issue Nov 22, 2024 · 0 comments

Comments

@flying-sheep
Copy link

flying-sheep commented Nov 22, 2024

For me, it changed the valid TOML

[tool.ruff]
lint.flake8-copyright.notice-rgx = 'SPDX-License-Identifier: MPL-2\.0'

into the invalid …MPL-2\.0" (\. is not a valid escape sequence in a ""-string)

pyproject-fmt needs to preserve raw strings everywhere.

@gaborbernat gaborbernat transferred this issue from tox-dev/pyproject-fmt Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant