Skip to content

Commit 12c7cc3

Browse files
authored
Merge pull request #49 from robust-python/release/0.34.0
Release/0.34.0
2 parents c016114 + b8d531e commit 12c7cc3

File tree

12 files changed

+53
-38
lines changed

12 files changed

+53
-38
lines changed

.cookiecutter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"_commit": "b36862f08dac62022ba33f94c31be4bac4181340",
2+
"_commit": "a2d5945a169185d37abe3b1eaad1871ece5d9eec",
33
"_max_python_version_minor_int": 14,
44
"_min_python_version_minor_int": 10,
55
"_template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",

.cruft.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",
3-
"commit": "b36862f08dac62022ba33f94c31be4bac4181340",
3+
"commit": "a2d5945a169185d37abe3b1eaad1871ece5d9eec",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -20,7 +20,7 @@
2020
"license": "MIT",
2121
"development_status": "Development Status :: 1 - Planning",
2222
"_template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",
23-
"_commit": "b36862f08dac62022ba33f94c31be4bac4181340",
23+
"_commit": "a2d5945a169185d37abe3b1eaad1871ece5d9eec",
2424
"_min_python_version_minor_int": 10,
2525
"_max_python_version_minor_int": 14,
2626
"python_versions": [

.github/workflows/build-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- "pyproject.toml"
1313
- ".github/workflows/build-docs.yml"
1414
- ".ruff.toml" # Affects docstrings via linting
15-
- "pyrightconfig.json" # Affects type hints in docs
15+
- "pyrightconfig.json" # Basedpyright config - affects type hints in docs
1616

1717
push:
1818
branches:

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ Thumbs.db # Windows thumbnail cache
5656
# MyPy cache (if used standalone or by IDE)
5757
.mypy_cache/
5858

59-
# Pyright cache
59+
# Pyright/Basedpyright cache
6060
.pyright/
61+
.basedpyright/
6162

6263
# Ruff cache
6364
.ruff_cache/

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"ms-python.python",
55
"ms-python.vscode-pylance",
66
"charliermarsh.ruff",
7-
"ms-pyright.pyright",
7+
"detachhead.basedpyright",
88

99
// Git + pre-commit workflow
1010
"ryanluker.vscode-pre-commit",

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"ruff.args": ["--config", "${workspaceFolder}/.ruff.toml"],
1515
"python.linting.enabled": true,
1616
"python.linting.ruffEnabled": true,
17-
// Pyright
17+
// Basedpyright
1818
"python.analysis.typeCheckingMode": "basic",
1919

2020
// Pytest

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## v0.34.0 (2025-11-24)
2+
13
## v0.33.0 (2025-11-17)
24

35
## v0.32.0 (2025-11-17)

CONTRIBUTING.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ This project follows these standards:
121121

122122
- **Code formatting:** [Ruff][ruff-documentation] (automatically applied by pre-commit)
123123
- **Linting:** Ruff with comprehensive rule set
124-
- **Type checking:** [Pyright][pyright-documentation]
124+
- **Type checking:** [Basedpyright][basedpyright-documentation]
125125
- **Security:** [Bandit][bandit-documentation] for security linting
126126
- **Commit messages:** [Conventional Commits][conventional-commits] format preferred
127127
- **Testing:** [pytest][pytest-documentation] with good coverage
@@ -168,7 +168,7 @@ Common Nox sessions for development:
168168
# Code quality
169169
uvx nox -s format-python # Format with Ruff
170170
uvx nox -s lint-python # Lint with Ruff
171-
uvx nox -s typecheck # Type check with Pyright
171+
uvx nox -s typecheck # Type check with Basedpyright
172172
uvx nox -s security-python # Security checks
173173

174174
# Testing
@@ -206,6 +206,7 @@ _This project was generated from the [cookiecutter-robust-python][cookiecutter-r
206206
[discussions]: https://github.com/56kyle/robust-python-demo/discussions
207207
[uv-documentation]: https://docs.astral.sh/uv/
208208
[ruff-documentation]: https://docs.astral.sh/ruff/
209+
[basedpyright-documentation]: https://github.com/detachhead/basedpyright
209210
[pyright-documentation]: https://github.com/microsoft/pyright
210211
[bandit-documentation]: https://bandit.readthedocs.io/
211212
[conventional-commits]: https://www.conventionalcommits.org/

noxfile.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,7 @@
1414
nox.options.default_venv_backend = "uv"
1515
os.environ.setdefault("PYO3_USE_ABI3_FORWARD_COMPATIBILITY", "1")
1616

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']
2418
DEFAULT_PYTHON_VERSION: str = PYTHON_VERSIONS[-1]
2519

2620
REPO_ROOT: Path = Path(__file__).parent.resolve()
@@ -102,11 +96,11 @@ def lint_python(session: Session) -> None:
10296

10397
@nox.session(python=PYTHON_VERSIONS, name="typecheck")
10498
def typecheck(session: Session) -> None:
105-
"""Run static type checking (Pyright) on Python code."""
99+
"""Run static type checking (Basedpyright) on Python code."""
106100
session.log("Installing type checking dependencies...")
107101
session.install("-e", ".", "--group", "dev")
108102

109-
session.log(f"Running Pyright check with py{session.python}.")
103+
session.log(f"Running Basedpyright check with py{session.python}.")
110104
session.run("pyright", "--pythonversion", session.python)
111105

112106

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "robust-python-demo"
3-
version = "0.33.0"
3+
version = "0.34.0"
44
description = "robust-python-demo"
55
authors = [
66
{ name = "Kyle Oliver", email = "56kyleoliver+cookiecutter-robust-python@gmail.com" },
@@ -41,7 +41,7 @@ dev = [
4141
"pip-audit>=2.9.0",
4242
"pytest>=8.3.5",
4343
"pytest-cov>=6.1.1",
44-
"pyright>=1.1.400",
44+
"basedpyright>=1.34.0",
4545
]
4646
docs = [
4747
"furo>=2024.8.6",

0 commit comments

Comments
 (0)