forked from busykoala/fastapi-oidc-auth
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnoxfile.py
35 lines (23 loc) · 813 Bytes
/
noxfile.py
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
import nox
@nox.session(venv_backend="none")
def fmt(s: nox.Session) -> None:
s.run("ruff", "check", ".", "--select", "I", "--fix")
s.run("black", ".")
@nox.session(venv_backend="none")
def fmt_check(s: nox.Session) -> None:
s.run("ruff", "check", ".", "--select", "I")
s.run("black", "--check", ".")
@nox.session(venv_backend="none")
def lint(s: nox.Session) -> None:
s.run("ruff", "check", ".", "--fix")
@nox.session(venv_backend="none")
def lint_check(s: nox.Session) -> None:
s.run("ruff", "check", ".")
@nox.session(venv_backend="none")
def type_check(s: nox.Session) -> None:
s.run("mypy", "src")
@nox.session(venv_backend="none")
def test(s: nox.Session) -> None:
s.run("pytest", "-v", "--cov", "-s")
s.run("coverage", "report")
s.run("coverage", "xml")