|
14 | 14 | nox.options.default_venv_backend = "uv" |
15 | 15 | os.environ.setdefault("PYO3_USE_ABI3_FORWARD_COMPATIBILITY", "1") |
16 | 16 |
|
17 | | -# Logic that helps avoid metaprogramming in cookiecutter-robust-python |
18 | | -MIN_PYTHON_VERSION_SLUG: int = int("3.10".lstrip("3.")) |
19 | | -MAX_PYTHON_VERSION_SLUG: int = int("3.14".lstrip("3.")) |
20 | | - |
21 | | -PYTHON_VERSIONS: List[str] = [ |
22 | | - f"3.{VERSION_SLUG}" for VERSION_SLUG in range(MIN_PYTHON_VERSION_SLUG, MAX_PYTHON_VERSION_SLUG + 1) |
23 | | -] |
| 17 | +PYTHON_VERSIONS: List[str] = ['3.10', '3.11', '3.12', '3.13', '3.14'] |
24 | 18 | DEFAULT_PYTHON_VERSION: str = PYTHON_VERSIONS[-1] |
25 | 19 |
|
26 | 20 | REPO_ROOT: Path = Path(__file__).parent.resolve() |
@@ -102,11 +96,11 @@ def lint_python(session: Session) -> None: |
102 | 96 |
|
103 | 97 | @nox.session(python=PYTHON_VERSIONS, name="typecheck") |
104 | 98 | def typecheck(session: Session) -> None: |
105 | | - """Run static type checking (Pyright) on Python code.""" |
| 99 | + """Run static type checking (Basedpyright) on Python code.""" |
106 | 100 | session.log("Installing type checking dependencies...") |
107 | 101 | session.install("-e", ".", "--group", "dev") |
108 | 102 |
|
109 | | - session.log(f"Running Pyright check with py{session.python}.") |
| 103 | + session.log(f"Running Basedpyright check with py{session.python}.") |
110 | 104 | session.run("pyright", "--pythonversion", session.python) |
111 | 105 |
|
112 | 106 |
|
|
0 commit comments