mirror of
https://github.com/ansible/ansible-documentation.git
synced 2026-03-26 13:18:58 +07:00
add py312 as target version for black formatting (#3517)
This commit is contained in:
@@ -86,7 +86,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
|
||||
@@ -96,7 +96,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
|
||||
|
||||
Reference in New Issue
Block a user