2
2
3
3
import nox
4
4
5
+ nox .needs_version = ">=2024.3.2"
6
+ nox .options .default_venv_backend = "uv|virtualenv"
5
7
nox .options .sessions = ["lint" , "pylint" , "tests" ]
6
8
7
9
@@ -19,7 +21,7 @@ def tests(session: nox.Session) -> None:
19
21
"""
20
22
Run the unit and regular tests.
21
23
"""
22
- session .install (".[test]" )
24
+ session .install ("-e .[test]" )
23
25
session .run ("pytest" , * session .posargs )
24
26
25
27
@@ -28,18 +30,26 @@ def minimums(session: nox.Session) -> None:
28
30
"""
29
31
Run the unit and regular tests.
30
32
"""
31
- session .install (".[test]" , "-ctests/constraints.txt" )
33
+ session .install ("-e .[test]" , "-ctests/constraints.txt" )
32
34
session .run ("pytest" , * session .posargs )
33
35
34
36
37
+ @nox .session ()
38
+ def run (session : nox .Session ) -> None :
39
+ """
40
+ Install and run.
41
+ """
42
+ session .install ("-e." , "--compile" )
43
+ session .run ("uproot-browser" , * session .posargs )
44
+
45
+
35
46
@nox .session
36
47
def pylint (session : nox .Session ) -> None :
37
48
"""
38
49
Run pylint.
39
50
"""
40
51
41
- session .install ("pylint" , "matplotlib" )
42
- session .install ("-e" , "." )
52
+ session .install ("-e." , "pylint" , "matplotlib" )
43
53
session .run ("pylint" , "src" , * session .posargs )
44
54
45
55
@@ -56,7 +66,7 @@ def build(session: nox.Session) -> None:
56
66
@nox .session
57
67
def make_logo (session : nox .Session ) -> None :
58
68
"""
59
- Rerender the logo
69
+ Rerender the logo.
60
70
"""
61
71
62
72
session .install ("pillow" )
0 commit comments