Skip to content

Commit 98c1789

Browse files
committed
chore: Update to Python 3.13
1 parent 4e738a3 commit 98c1789

File tree

7 files changed

+117
-117
lines changed

7 files changed

+117
-117
lines changed

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
pkgs = import nixpkgs {inherit system;};
3636
nixTools = with pkgs; [alejandra deadnix statix];
3737
pyTools = with pkgs; [black ruff uv];
38-
python = pkgs.python312; # NOTE: Keep in-sync with pyproject.toml.
38+
python = pkgs.python313; # NOTE: Keep in-sync with pyproject.toml.
3939
devPkgs = [python] ++ (with pkgs; [curl just pre-commit skopeo]);
4040

4141
workspace = uv2nix.lib.workspace.loadWorkspace {workspaceRoot = ./.;};

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ src-dir := 'src' / app-id
1111
test-dir := 'tests'
1212
docs-dir := 'docs'
1313

14-
python-ver := 'py312'
14+
python-ver := 'py313'
1515
rtd-build-api-url := "https://readthedocs.org/api/v3/projects/{{app-id}}/versions/latest/builds/"
1616

1717
# Show this help and exit.

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version = "0.0dev0"
55
authors = [
66
{name = "Wibowo Arindrarto", email = "[email protected]"},
77
]
8-
requires-python = "==3.12.*"
8+
requires-python = "==3.13.*"
99
dependencies = [
1010
"blinker==1.*",
1111
"click==8.*",
@@ -27,7 +27,7 @@ classifiers = [
2727
"Intended Audience :: Developers",
2828
"License :: OSI Approved :: BSD License",
2929
"Operating System :: POSIX :: Linux",
30-
"Programming Language :: Python :: 3.12",
30+
"Programming Language :: Python :: 3.13",
3131
"Topic :: Internet :: WWW/HTTP",
3232
"Topic :: Utilities",
3333
]
@@ -103,7 +103,7 @@ ignore = [
103103
"__init__.py" = ["E402"]
104104

105105
[tool.mypy]
106-
python_version = "3.12"
106+
python_version = "3.13"
107107
ignore_missing_imports = true
108108
show_error_context = true
109109
show_column_numbers = true
@@ -127,7 +127,7 @@ skips = ["B104", "B404", "B603"]
127127

128128
[tool.black]
129129
line-length = 88
130-
target-version = ["py312"]
130+
target-version = ["py313"]
131131
include = '\.pyi?$'
132132
exclude = '/(\.eggs|\.git|\.mypy_cache|\.tox|\.venv|_build|build|dist)/'
133133

src/volt/site.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def add_output(self, output: Output) -> None:
179179

180180
return None
181181

182-
def fnodes(self) -> Generator[_PlanNode, None, None]:
182+
def fnodes(self) -> Generator[_PlanNode]:
183183
"""Yield all file output nodes, depth-first."""
184184

185185
# TODO: Maybe compress the paths so we don't have to iterate over all
@@ -191,7 +191,7 @@ def fnodes(self) -> Generator[_PlanNode, None, None]:
191191
if not cur.is_dir:
192192
yield cur
193193

194-
def dnodes(self) -> Generator[_PlanNode, None, None]:
194+
def dnodes(self) -> Generator[_PlanNode]:
195195
"""Yield the least number of directory nodes required to construct
196196
the site.
197197

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def isolated_project_dir() -> Callable[[Path, str], ACM[Path]]:
2323
fixture_dir = Path(__file__).parent / "fixtures"
2424

2525
@contextmanager
26-
def func(ifs: Path, name: str) -> Generator[Path, None, None]:
26+
def func(ifs: Path, name: str) -> Generator[Path]:
2727
src = fixture_dir / name
2828
dest = ifs / name
2929
copytree(src, dest, dirs_exist_ok=False)

tests/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def isolated_filesystem( # type: ignore[override]
3030
layout: Optional[DirLayout] = None,
3131
*args: Any,
3232
**kwargs: Any,
33-
) -> Generator[Path, None, None]:
33+
) -> Generator[Path]:
3434
with super().isolated_filesystem(*args, **kwargs) as fs:
3535
root = Path(fs)
3636
self._create_files(root, layout)

uv.lock

Lines changed: 107 additions & 107 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)