Skip to content

Commit 8282134

Browse files
DX: upgrade environment to Python 3.13 (#308)
* DX: define Poe the Poet `lab` job for Jupyter lab * DX: install `jupyterlab-quickopen` * MAINT: ignore `https://www.npmjs.com/package` * MAINT: pin Python version in environment * MAINT: remove deprecated Ruff rule `PD901` * MAINT: upgrade lock files
1 parent 1a84a94 commit 8282134

8 files changed

Lines changed: 437 additions & 683 deletions

File tree

.binder/runtime.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-3.12
1+
python-3.13

.github/release-drafter.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ categories:
1919
- title: 📝 Documentation
2020
label: 📝 Docs
2121
- title: 🔨 Maintenance
22-
label: 🔨 Maintenance
22+
labels:
23+
- 🔨 Maintenance
24+
- ⬆️ Lock
2325
- title: 🖱️ Developer Experience
2426
label: 🖱️ DX
2527

.pre-commit-config.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ repos:
1414
- id: check-useless-excludes
1515

1616
- repo: https://github.com/ComPWA/policy
17-
rev: 0.7.0
17+
rev: 0.7.3
1818
hooks:
1919
- id: check-dev-files
2020
args:
2121
- --doc-apt-packages=graphviz
22-
- --dev-python-version=3.12
2322
- --github-pages
2423
- --no-pypi
2524
- --repo-name=compwa.github.io
@@ -58,9 +57,9 @@ repos:
5857
metadata.vscode
5958
6059
- repo: https://github.com/astral-sh/ruff-pre-commit
61-
rev: v0.12.8
60+
rev: v0.14.0
6261
hooks:
63-
- id: ruff
62+
- id: ruff-check
6463
args: [--fix]
6564
types_or: [python, pyi, jupyter]
6665
- id: ruff-format
@@ -102,13 +101,13 @@ repos:
102101
- id: taplo-format
103102

104103
- repo: https://github.com/pappasam/toml-sort
105-
rev: v0.24.2
104+
rev: v0.24.3
106105
hooks:
107106
- id: toml-sort
108107
args: [--in-place]
109108

110109
- repo: https://github.com/python-jsonschema/check-jsonschema
111-
rev: 0.33.2
110+
rev: 0.34.1
112111
hooks:
113112
- id: check-jsonschema
114113
name: Check CITATION.cff
@@ -126,7 +125,7 @@ repos:
126125
- id: cspell
127126

128127
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
129-
rev: 3.2.1
128+
rev: 3.4.0
130129
hooks:
131130
- id: editorconfig-checker
132131
name: editorconfig
@@ -147,11 +146,11 @@ repos:
147146
)$
148147
149148
- repo: https://github.com/ComPWA/pyright-pre-commit
150-
rev: v1.1.403
149+
rev: v1.1.406
151150
hooks:
152151
- id: pyright
153152

154153
- repo: https://github.com/astral-sh/uv-pre-commit
155-
rev: 0.8.8
154+
rev: 0.9.2
156155
hooks:
157156
- id: uv-lock

.python-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2
33
build:
44
os: ubuntu-24.04
55
tools:
6-
python: "3.12"
6+
python: "3.13"
77
commands:
88
- |-
99
export PIXI_HOME=$READTHEDOCS_VIRTUALENV_PATH

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@
170170
"https://www.andiamo.co.uk/resources/iso-language-codes", # 443, but works
171171
"https://www.bookfinder.com",
172172
"https://www.mathworks.com/products/matlab.html",
173+
"https://www.npmjs.com/package",
173174
r"https://github.com/ComPWA/RUB-EP1-AG/.*", # private
174175
r"https://github.com/orgs/ComPWA/projects/\d+", # private
175176
]

pyproject.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dynamic = ["version"]
1212
license = {file = "LICENSE"}
1313
maintainers = [{email = "compwa-admin@ep1.rub.de"}]
1414
name = "compwa-github-io"
15-
requires-python = ">=3.12"
15+
requires-python = "~=3.13.0"
1616

1717
[project.readme]
1818
content-type = "text/markdown"
@@ -53,11 +53,11 @@ doc = [
5353
]
5454
jupyter = [
5555
"jupyterlab",
56-
"jupyterlab-code-formatter >=3.0.0",
5756
"jupyterlab-code-formatter",
5857
"jupyterlab-git",
5958
"jupyterlab-lsp",
6059
"jupyterlab-myst",
60+
"jupyterlab-quickopen",
6161
"python-lsp-ruff",
6262
"python-lsp-server[rope]",
6363
{include-group = "notebooks"},
@@ -150,6 +150,11 @@ env = {EXECUTE_NB = "yes"}
150150
help = "Set up a server to directly preview changes to the HTML pages with cached notebook execution"
151151
sequence = ["doclive"]
152152

153+
[tool.poe.tasks.lab]
154+
args = [{name = "paths", default = "", positional = true}]
155+
cmd = "jupyter lab ${paths}"
156+
help = "Run Jupyter Lab"
157+
153158
[tool.poe.tasks.linkcheck]
154159
cmd = """
155160
sphinx-build \
@@ -305,7 +310,6 @@ split-on-trailing-comma = false
305310
"N807",
306311
"N815",
307312
"N816",
308-
"PD901",
309313
"PLC0415",
310314
"PLC2401",
311315
"PLR09",

uv.lock

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

0 commit comments

Comments
 (0)