-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnoxfile.py
More file actions
40 lines (37 loc) · 832 Bytes
/
noxfile.py
File metadata and controls
40 lines (37 loc) · 832 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
"""
Noxfile
"""
import nox
@nox.session()
def clean(session):
session.install('coverage[toml]')
session.run('coverage', 'erase')
@nox.session(python=["3.10", "3.11"])
def tests(session):
session.install('.[dev]')
session.run(
'pytest',
'--cov', 'paranox',
'--cov-append',
'tests/',
)
session.run('ruff', 'check', 'src/paranox')
session.run('ruff', 'format', '--check', 'src/paranox')
@nox.session()
def report(session):
session.install('coverage[toml]')
session.run(
'coverage',
'report', '--fail-under=90',
"--omit='*test*,*__init__*'",
)
session.run(
'coverage',
'html',
"--omit='*test*,*__init__*'",
)
session.run(
'coverage',
'xml',
"--omit='*test*,*__init__*'",
)