Add black check to nox file

This commit is contained in:
Adrian Vollmer 2024-03-31 10:54:35 +02:00
parent 4f41fbf64e
commit c58206b892
2 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,14 @@
import nox
@nox.session()
def tests(session):
session.install(".[tests]")
session.run("pytest", '--driver=firefox', *session.posargs)
session.run("pytest", "--driver=firefox", *session.posargs)
@nox.session()
def black(session):
session.install(".[tests]")
session.run("black", "zundler", "--check", *session.posargs)
session.run("black", "tests", "--check", *session.posargs)

View File

@ -61,6 +61,7 @@ tests = [
'pytest>=8',
'selenium',
'pytest-selenium',
'black',
]
[tool.pytest.ini_options]