add py312 as target version for black formatting (#3517) (#3518)

(cherry picked from commit d924d1ab5f)

Co-authored-by: Don Naro <dnaro@redhat.com>
This commit is contained in:
patchback[bot]
2026-03-10 19:04:08 +00:00
committed by GitHub
parent ee5a46abcb
commit 1707e62ef4

View File

@@ -83,7 +83,7 @@ def formatters(session: nox.Session):
"""
install(session, req="formatters")
session.run("isort", *session.posargs, *LINT_FILES)
session.run("black", *session.posargs, *LINT_FILES)
session.run("black", "--target-version", "py312", *session.posargs, *LINT_FILES)
@nox.session
@@ -93,7 +93,9 @@ def formatters_check(session: nox.Session):
"""
install(session, req="formatters")
session.run("isort", "--check", *session.posargs, *LINT_FILES)
session.run("black", "--check", *session.posargs, *LINT_FILES)
session.run(
"black", "--check", "--target-version", "py312", *session.posargs, *LINT_FILES
)
@nox.session