77import nox
88
99DIR = Path (__file__ ).parent .resolve ()
10- ALL_PYTHON = ["3.8" , "3.9" , "3.10" , "3.11" , "3.12" ]
10+ ALL_PYTHON = ["3.8" , "3.9" , "3.10" , "3.11" , "3.12" , "3.13" ]
1111
1212nox .needs_version = ">=2024.3.2"
13- nox .options .sessions = ["lint" , "pylint" , " tests" ]
13+ nox .options .sessions = ["lint" , "tests" ]
1414nox .options .default_venv_backend = "uv|virtualenv"
1515
1616
17- @nox .session
17+ @nox .session ( reuse_venv = True )
1818def lint (session : nox .Session ) -> None :
1919 """
2020 Run the linter.
@@ -25,7 +25,7 @@ def lint(session: nox.Session) -> None:
2525 )
2626
2727
28- @nox .session (python = ALL_PYTHON )
28+ @nox .session (reuse_venv = True , python = ALL_PYTHON )
2929def tests (session : nox .Session ) -> None :
3030 """
3131 Run the unit and regular tests.
@@ -34,7 +34,7 @@ def tests(session: nox.Session) -> None:
3434 session .run ("pytest" , * session .posargs )
3535
3636
37- @nox .session (python = ALL_PYTHON )
37+ @nox .session (reuse_venv = True , python = ALL_PYTHON )
3838def coverage (session : nox .Session ) -> None :
3939 """Run tests and compute coverage."""
4040 session .posargs .append ("--cov=cuda_histogram" )
@@ -83,7 +83,7 @@ def docs(session: nox.Session) -> None:
8383 session .run ("sphinx-build" , "--keep-going" , * shared_args )
8484
8585
86- @nox .session
86+ @nox .session ( reuse_venv = True )
8787def build_api_docs (session : nox .Session ) -> None :
8888 """
8989 Build (regenerate) API docs.
@@ -102,7 +102,7 @@ def build_api_docs(session: nox.Session) -> None:
102102 )
103103
104104
105- @nox .session
105+ @nox .session ( reuse_venv = True )
106106def build (session : nox .Session ) -> None :
107107 """
108108 Build an SDist and wheel.
0 commit comments