noxfile.test()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 5
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nop 1
1
import nox
2
3
4
@nox.session
5
def test(session: nox.Session):
6
    session.install("poetry")
7
    session.run("poetry", "install")
8
    session.run("pytest")
9
10
11
@nox.session
12
def format(session: nox.Session):
13
    session.install("black", "isort")
14
    session.run("isort", "pincer")
15
    session.run("black", "pincer")
16
17
18
@nox.session
19
def lint(session: nox.Session):
20
    session.install("flake8")
21
    session.run("flake8", "pincer")
22
23
24
"""
25
Mypy will be be ran within a workflow until pincer provide complete typing
26
that will not fail for every push.
27
28
@nox.session
29
def mypy(session: nox.Session):
30
   session.install("mypy")
31
   session.run("mypy", "pincer")
32
"""
33