Skip to content

Commit d658507

Browse files
rascaniclaude
andauthored
Revert black bump to unbreak lintrunner on main (#20777)
### Summary #20452 raised black from 24.4.2 to 26.3.0 so it would accept "py314" in [tool.black] target-version. That two-year jump in black's stable style would reformat ~1900 tracked files, so lintrunner --all-files fails on main under the newer style. Revert black to 24.4.2 and drop py314 from target-version, which is a formatting-only setting and does not affect running executorch on 3.14. The rest of #20452's 3.14 support (requires-python, classifiers, wheel matrices, setup.py) is unchanged. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent dcc04ef commit d658507

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ first_party_detection = false
140140
# Emit syntax compatible with older versions of python instead of only the range
141141
# specified by `requires-python`. TODO: Remove this once we support these older
142142
# versions of python and can expand the `requires-python` range.
143-
target-version = ["py38", "py39", "py310", "py311", "py312", "py313", "py314"]
143+
# py314 is intentionally omitted: black 24.4.2 does not recognize it, and the
144+
# newer black that does (>=26) reformats the whole repo. Add py314 here when the
145+
# tree is reformatted to the newer black stable style.
146+
target-version = ["py38", "py39", "py310", "py311", "py312", "py313"]
144147

145148
[tool.docformatter]
146149
black = true

requirements-lintrunner.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pycodestyle==2.11.1
99
torchfix==0.6.0
1010

1111
# UFMT
12-
black==26.3.0
12+
black==24.4.2
1313
ufmt==2.8.0
1414
usort==1.0.8.post1
1515

0 commit comments

Comments
 (0)