noxfile   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 16
dl 0
loc 25
rs 10
c 0
b 0
f 0

3 Functions

Rating   Name   Duplication   Size   Complexity  
A test() 0 5 1
A format() 0 5 1
A lint() 0 4 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