forked from ElementoLab/imc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnoxfile.py
More file actions
42 lines (35 loc) · 650 Bytes
/
Copy pathnoxfile.py
File metadata and controls
42 lines (35 loc) · 650 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
40
41
42
import nox
python_versions = [
"3.8",
"3.9",
"3.10",
]
# TODO: annotate these with explanation
ignore_rules = [
"E501",
"F401",
"F841",
"W503",
"E402",
"E203",
"E266",
"E722", # bare except
]
exclude_directories = [
"tests",
]
@nox.session(python=python_versions)
def lint(session):
session.install("flake8")
session.run(
"flake8",
"--ignore",
",".join(ignore_rules),
"--exclude",
",".join(exclude_directories),
"imc/",
)
@nox.session(python=python_versions)
def test(session):
session.install(".[dev]")
session.run("pytest")