|
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() |
@@ -120,11 +114,11 @@ def lint_rust(session: Session) -> None: |
120 | 114 |
|
121 | 115 | @nox.session(python=PYTHON_VERSIONS, name="typecheck") |
122 | 116 | def typecheck(session: Session) -> None: |
123 | | - """Run static type checking (Pyright) on Python code.""" |
| 117 | + """Run static type checking (Basedpyright) on Python code.""" |
124 | 118 | session.log("Installing type checking dependencies...") |
125 | 119 | session.install("-e", ".", "--group", "dev") |
126 | 120 |
|
127 | | - session.log(f"Running Pyright check with py{session.python}.") |
| 121 | + session.log(f"Running Basedpyright check with py{session.python}.") |
128 | 122 | session.run("pyright", "--pythonversion", session.python) |
129 | 123 |
|
130 | 124 |
|
|
0 commit comments