-
Notifications
You must be signed in to change notification settings - Fork 9
/
noxfile.py
47 lines (35 loc) · 935 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
39
40
41
42
43
44
45
46
47
import nox
import os
cwd = os.getcwd()
@nox.session(reuse_venv=True)
def tests(session):
session.install("pytest")
session.install("attrs")
session.install("requests")
session.run("pytest")
@nox.session(reuse_venv=True)
def mypy(session):
session.install("mypy")
session.install("types-attrs")
session.install("types-requests")
session.run("mypy", "zenora")
@nox.session(reuse_venv=True)
def formatting(session):
session.install("black")
session.run("black", "./")
@nox.session(reuse_venv=True)
def lint(session):
session.install("flake8")
session.run(
"flake8",
"--statistics",
"--show-source",
"--benchmark",
"--tee",
)
@nox.session(reuse_venv=True)
def docs(session):
session.install("attrs")
session.install("requests")
session.install("pdoc3")
session.run("pdoc", "--html", "zenora", "--force", external=True)