mirror of
https://github.com/tcsenpai/Zundler.git
synced 2025-06-08 04:25:27 +00:00
Add black check to nox file
This commit is contained in:
parent
4f41fbf64e
commit
c58206b892
10
noxfile.py
10
noxfile.py
@ -1,6 +1,14 @@
|
|||||||
import nox
|
import nox
|
||||||
|
|
||||||
|
|
||||||
@nox.session()
|
@nox.session()
|
||||||
def tests(session):
|
def tests(session):
|
||||||
session.install(".[tests]")
|
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)
|
||||||
|
@ -61,6 +61,7 @@ tests = [
|
|||||||
'pytest>=8',
|
'pytest>=8',
|
||||||
'selenium',
|
'selenium',
|
||||||
'pytest-selenium',
|
'pytest-selenium',
|
||||||
|
'black',
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user