Passed
Pull Request — main (#469)
by
unknown
02:40 queued 53s
created

noxfile   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 20
dl 0
loc 28
rs 10
c 0
b 0
f 0

4 Functions

Rating   Name   Duplication   Size   Complexity  
A mypy() 0 4 1
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
@nox.session
25
def mypy(session: nox.Session):
26
    session.install("mypy")
27
    session.run("mypy", "pincer")
28