Closed alvations closed 2 months ago
this is likely a regression in python 3.12.4 which will be fixed in the next patch release. can you try with 3.12.3?
Let me try that. Thanks again for the quick reply!
yeah this is the cpython 3.12.4 regression due to incorrect positions of triple-quoted-non-ascii-multiline strings - if you limit to 3.12.3 in your pre-commit workflow this will be avoided (or wait until 3.12.5 which is supposed to have a fix)
this is the cpython 3.12.4 regression due to incorrect positions of triple-quoted-non-ascii-multiline strings - if you limit to 3.12.3 in your pre-commit workflow this will be avoided (or wait until 3.12.5 which is supposed to have a fix)
Confirmed that in nltk ci pipeline we see the issue with 3.12.4, switching to 3.12.3 as a workaround works. Thank you. :+1:
Using this version:
It seems like
pyupgrade
will infinitely add newlines on this file https://github.com/nltk/nltk/blob/aa72b961da4d8756f37a71fd858d5c95792626d7/nltk/test/unit/test_corpora.pyTo replicate:
And checking the output:
Background, this is affecting the NLTK repo at https://github.com/nltk/nltk/issues/3273 and CI/CD pyupgrade step is infinitely unsatisfy-able =) https://github.com/nltk/nltk/pull/3274