3333 "docs/conf.py" ,
3434]
3535
36+ DEFAULT_PYTHON_VERSION = "3.10"
37+ # Error if a python version is missing
38+ nox .options .error_on_missing_interpreters = True
3639
37- @nox .session (python = "3.8" )
40+ @nox .session (python = DEFAULT_PYTHON_VERSION )
3841def lint (session ):
3942 session .install (
4043 "flake8" , "flake8-import-order" , "docutils" , CLICK_VERSION , BLACK_VERSION
@@ -54,7 +57,7 @@ def lint(session):
5457 )
5558
5659
57- @nox .session (python = "3.8" )
60+ @nox .session (python = DEFAULT_PYTHON_VERSION )
5861def blacken (session ):
5962 """Run black.
6063 Format code to uniform standard.
@@ -67,7 +70,7 @@ def blacken(session):
6770 session .run ("black" , * BLACK_PATHS )
6871
6972
70- @nox .session (python = "3.8" )
73+ @nox .session (python = DEFAULT_PYTHON_VERSION )
7174def mypy (session ):
7275 """Verify type hints are mypy compatible."""
7376 session .install ("-e" , "." )
@@ -84,7 +87,9 @@ def mypy(session):
8487 session .run ("mypy" , "-p" , "google" , "-p" , "tests" , "-p" , "tests_async" )
8588
8689
87- @nox .session (python = ["3.7" , "3.8" , "3.9" , "3.10" , "3.11" , "3.12" , "3.13" ])
90+ # TODO(https://github.com/googleapis/google-auth-library-python-oauthlib/issues/410):
91+ # Remove or restore testing for Python 3.7/3.8
92+ @nox .session (python = ["3.9" , "3.10" , "3.11" , "3.12" , "3.13" ])
8893def unit (session ):
8994 constraints_path = str (
9095 CURRENT_DIRECTORY / "testing" / f"constraints-{ session .python } .txt"
@@ -102,7 +107,7 @@ def unit(session):
102107 )
103108
104109
105- @nox .session (python = "3.8" )
110+ @nox .session (python = DEFAULT_PYTHON_VERSION )
106111def cover (session ):
107112 session .install ("-e" , ".[testing]" )
108113 session .run (
0 commit comments