-
Notifications
You must be signed in to change notification settings - Fork 1
/
noxfile.py
38 lines (30 loc) · 920 Bytes
/
noxfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import nox
@nox.session(python=["3.9"])
def test(session):
session.install("poetry")
session.run("poetry", "lock", "--no-update")
session.run(
"poetry",
"install",
)
session.run("pytest", "--cov-report=term-missing", "--cov=app", "app/tests")
@nox.session
def coverage(session):
session.install("poetry")
session.run("poetry", "lock", "--no-update")
session.run("poetry", "install")
session.run("coverage", "report")
@nox.session
def lint(session):
session.install("poetry")
session.run("poetry", "lock", "--no-update")
session.run("poetry", "install")
session.run("black", "./app")
session.run("flake8")
session.run("pytest", "--isort")
# @nox.session
# def typing(session):
# session.install("poetry")
# session.run("poetry", "lock", "--no-update")
# session.run("poetry", "install")
# session.run("pyright", "./app")