ruff
[`pyupgrade`] Preserve parenthesis when fixing native literals containing newlines (`UP018`)
#17220
Merged

[`pyupgrade`] Preserve parenthesis when fixing native literals containing newlines (`UP018`) #17220

maxmynter
maxmynter (tests) Preserve parens when newline in combined unary
1f25fbaa
maxmynter (fix) Preserve parens around native literals with newlines
62315326
github-actions
AlexWaygood AlexWaygood added bug
AlexWaygood AlexWaygood added fixes
dscorbett
maxmynter (fixup) Make newline handling work for carriage returns
7688fd6f
maxmynter (test) Add CR return smoke test and new snapshot
5edfdc8f
dhruvmanila
dhruvmanila commented on 2025-04-10
dhruvmanila dhruvmanila changed the title Preserve parenthesis when fixing native literals containing newlines [`pyupgrade`] Preserve parenthesis when fixing native literals containing newlines (`UP018`) 159 days ago
maxmynter (fixup) Reformat \r tests and add eol handling to .gitattributes
b84521ab
maxmynter
maxmynter (tests) UP018, keep multiline literals enclosed for multiple newlines
5eddcba3
maxmynter (tests) Add LF line ending test to RUF046
4f94c62f
maxmynter Remove CR/LF checks from main fixtures of RUF046 and UP018
2e7e73fa
maxmynter (fixup) fix typo in testfile
be82c8c4
maxmynter (fixup) Changed filename of fixture in snapshot
9d9ff49f
MichaReiser
maxmynter Add editorconfigs to avoid reformatting of LF\CR lineendings
67348be1
maxmynter
maxmynter maxmynter requested a review from dhruvmanila dhruvmanila 153 days ago
dhruvmanila
dhruvmanila commented on 2025-04-21
maxmynter Remove fixed lineendings of snapshots in .gitattributes
005a5288
maxmynter maxmynter requested a review from dhruvmanila dhruvmanila 146 days ago
MichaReiser MichaReiser merged a01f2510 into main 145 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone