-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnoxfile.py
More file actions
39 lines (31 loc) · 786 Bytes
/
noxfile.py
File metadata and controls
39 lines (31 loc) · 786 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
27
28
29
30
31
32
33
34
35
36
37
38
39
import nox
@nox.session
def flake8(session):
session.install(
"flake8",
"flake8-absolute-import",
"flake8-bugbear",
"flake8-builtins",
"flake8-colors",
"flake8-commas",
"flake8-comprehensions",
# "flake8-docstrings",
"flake8-pyproject",
"flake8-use-fstring",
"pep8-naming",
)
session.run("flake8", "--filename", "*.py", "--exclude", "popari/genes_ncbi_mus_musculus_proteincoding.py")
@nox.session
def lint(session):
targets = (flake8,)
for t in targets:
session.log(f"Running {t.__name__}")
t(session)
@nox.session
def unittests(session):
session.install(".[test]")
session.run("pytest")
nox.options.sessions = [
"lint",
# "unittests",
]