mirror of
https://github.com/ansible/ansible-documentation.git
synced 2026-03-26 13:18:58 +07:00
(cherry picked from commit d924d1ab5f)
Co-authored-by: Don Naro <dnaro@redhat.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user