diff --git a/noxfile.py b/noxfile.py index 70e6593..a786e7c 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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) diff --git a/pyproject.toml b/pyproject.toml index 22fb14f..69a4bfb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -61,6 +61,7 @@ tests = [ 'pytest>=8', 'selenium', 'pytest-selenium', + 'black', ] [tool.pytest.ini_options]