3636# Error if a python version is missing
3737nox .options .error_on_missing_interpreters = True
3838
39+ DEFAULT_PYTHON_VERSION = "3.10"
3940BLACK_VERSION = "black==23.7.0"
4041BLACK_PATHS = ["test_utils" , "setup.py" ]
4142CURRENT_DIRECTORY = pathlib .Path (__file__ ).parent .absolute ()
4243
4344
44- @nox .session (python = "3.8" )
45+ @nox .session (python = DEFAULT_PYTHON_VERSION )
4546def lint (session ):
4647 """Run linters.
4748
@@ -57,7 +58,7 @@ def lint(session):
5758 session .run ("flake8" , * BLACK_PATHS )
5859
5960
60- @nox .session (python = "3.8" )
61+ @nox .session (python = DEFAULT_PYTHON_VERSION )
6162def blacken (session ):
6263 """Run black.
6364
@@ -70,14 +71,14 @@ def blacken(session):
7071 )
7172
7273
73- @nox .session (python = "3.8" )
74+ @nox .session (python = DEFAULT_PYTHON_VERSION )
7475def lint_setup_py (session ):
7576 """Verify that setup.py is valid (including RST check)."""
7677 session .install ("docutils" , "pygments" )
7778 session .run ("python" , "setup.py" , "check" , "--restructuredtext" , "--strict" )
7879
7980
80- @nox .session (python = "3.8" )
81+ @nox .session (python = DEFAULT_PYTHON_VERSION )
8182def mypy (session ):
8283 """Verify type hints are mypy compatible."""
8384 session .install ("-e" , "." )
@@ -89,7 +90,7 @@ def mypy(session):
8990 session .run ("mypy" , "test_utils/" , "tests/" )
9091
9192
92- @nox .session (python = ["3.7" , "3.8" , "3.9" , "3.10" , "3.11" , "3.12" , "3.13" ])
93+ @nox .session (python = ["3.7" , "3.8" , "3.9" , "3.10" , "3.11" , "3.12" , "3.13" , "3.14" ])
9394def unit (session ):
9495 constraints_path = str (
9596 CURRENT_DIRECTORY / "testing" / f"constraints-{ session .python } .txt"
@@ -119,7 +120,7 @@ def unit(session):
119120 )
120121
121122
122- @nox .session (python = "3.8" )
123+ @nox .session (python = DEFAULT_PYTHON_VERSION )
123124def check_lower_bounds (session ):
124125 """Check lower bounds in setup.py are reflected in constraints file"""
125126 session .install ("." )
@@ -133,7 +134,7 @@ def check_lower_bounds(session):
133134 )
134135
135136
136- @nox .session (python = "3.8" )
137+ @nox .session (python = DEFAULT_PYTHON_VERSION )
137138def update_lower_bounds (session ):
138139 """Update lower bounds in constraints.txt to match setup.py"""
139140 session .install ("." )
0 commit comments