-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathnoxfile.py
More file actions
26 lines (21 loc) · 766 Bytes
/
noxfile.py
File metadata and controls
26 lines (21 loc) · 766 Bytes
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
import nox
@nox.session(python=["3.9","3.11"])
def tests(session):
# same as pip install -r -requirements.txt
session.install("-r", "requirements.txt")
session.install("pytest")
session.run("pytest", "-v", "tests")
@nox.session(python=["3.9","3.11"])
def lint(session):
session.install("flake8")
session.install("flake8-docstrings")
session.run("flake8", "./azure/")
@nox.session(python=["3.9","3.11"])
def typecheck(session):
session.install("-r", "requirements.txt")
session.install("mypy")
session.run("mypy", "./azure/")
@nox.session(python=["3.9","3.11"])
def autopep(session):
session.install("-r", "requirements.txt")
session.run("autopep8", "--in-place --aggressive --aggressive --recursive \"./azure/\"")