diff --git a/pyproject.toml b/pyproject.toml index ab75a39fe74..1bf343cfd5f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -140,7 +140,10 @@ first_party_detection = false # Emit syntax compatible with older versions of python instead of only the range # specified by `requires-python`. TODO: Remove this once we support these older # versions of python and can expand the `requires-python` range. -target-version = ["py38", "py39", "py310", "py311", "py312", "py313", "py314"] +# py314 is intentionally omitted: black 24.4.2 does not recognize it, and the +# newer black that does (>=26) reformats the whole repo. Add py314 here when the +# tree is reformatted to the newer black stable style. +target-version = ["py38", "py39", "py310", "py311", "py312", "py313"] [tool.docformatter] black = true diff --git a/requirements-lintrunner.txt b/requirements-lintrunner.txt index bc04b7c8da1..abfed1df9b4 100644 --- a/requirements-lintrunner.txt +++ b/requirements-lintrunner.txt @@ -9,7 +9,7 @@ pycodestyle==2.11.1 torchfix==0.6.0 # UFMT -black==26.3.0 +black==24.4.2 ufmt==2.8.0 usort==1.0.8.post1