Skip to content

Commit 3c605e4

Browse files
MAINT: update lock files (#303)
* DX: remove `setuptools-scm` version configuration * FIX: set correct ignore patterns for `sphinx-autobuild` * MAINT: remove dynamic version from `uv.lock` * MAINT: update developer configuration
1 parent c11417b commit 3c605e4

File tree

5 files changed

+160
-171
lines changed

5 files changed

+160
-171
lines changed

.pre-commit-config.yaml

+7-6
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
- id: check-useless-excludes
1414

1515
- repo: https://github.com/ComPWA/policy
16-
rev: 0.5.15
16+
rev: 0.6.1
1717
hooks:
1818
- id: check-dev-files
1919
args:
@@ -26,6 +26,7 @@ repos:
2626
- id: colab-toc-visible
2727
- id: fix-nbformat-version
2828
- id: remove-empty-tags
29+
- id: set-nb-display-name
2930

3031
- repo: https://github.com/kynan/nbstripout
3132
rev: 0.8.1
@@ -56,7 +57,7 @@ repos:
5657
metadata.vscode
5758
5859
- repo: https://github.com/astral-sh/ruff-pre-commit
59-
rev: v0.9.1
60+
rev: v0.9.3
6061
hooks:
6162
- id: ruff
6263
args: [--fix]
@@ -119,12 +120,12 @@ repos:
119120
pass_filenames: false
120121

121122
- repo: https://github.com/streetsidesoftware/cspell-cli
122-
rev: v8.17.0
123+
rev: v8.17.1
123124
hooks:
124125
- id: cspell
125126

126127
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
127-
rev: 3.0.3
128+
rev: 3.2.0
128129
hooks:
129130
- id: editorconfig-checker
130131
name: editorconfig
@@ -145,11 +146,11 @@ repos:
145146
)$
146147
147148
- repo: https://github.com/ComPWA/pyright-pre-commit
148-
rev: v1.1.391
149+
rev: v1.1.392
149150
hooks:
150151
- id: pyright
151152

152153
- repo: https://github.com/astral-sh/uv-pre-commit
153-
rev: 0.5.18
154+
rev: 0.5.25
154155
hooks:
155156
- id: uv-lock

.readthedocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ build:
1414
uv run \
1515
--group doc \
1616
--no-dev \
17-
--with tox \
17+
--with tox-uv \
1818
tox -e doc
1919
mkdir -p $READTHEDOCS_OUTPUT
2020
mv docs/_build/html $READTHEDOCS_OUTPUT

.vscode/settings.json

+1-6
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@
3030
"\u03bd": true,
3131
"\u03c3": true
3232
},
33-
"files.watcherExclude": {
34-
"**/*_cache/**": true,
35-
"**/.eggs/**": true,
36-
"**/.git/**": true,
37-
"**/.tox/**": true
38-
},
3933
"git.rebaseWhenSync": true,
4034
"github-actions.workflows.pinned.workflows": [".github/workflows/ci.yml"],
4135
"gitlens.telemetry.enabled": false,
@@ -53,6 +47,7 @@
5347
"notebook.formatOnSave.enabled": true,
5448
"notebook.gotoSymbols.showAllSymbols": true,
5549
"python.analysis.autoImportCompletions": false,
50+
"python.defaultInterpreterPath": ".venv/bin/python",
5651
"python.terminal.activateEnvironment": false,
5752
"python.testing.pytestEnabled": false,
5853
"redhat.telemetry.enabled": false,

pyproject.toml

+19-26
Original file line numberDiff line numberDiff line change
@@ -82,21 +82,9 @@ types = ["sphinx-api-relink"]
8282
include-package-data = false
8383

8484
[tool.setuptools_scm]
85-
local_scheme = "no-local-version"
86-
version_scheme = "only-version"
8785
write_to = "version.py"
8886

8987
[tool.pyright]
90-
exclude = [
91-
"**/.git",
92-
"**/.ipynb_checkpoints",
93-
"**/.mypy_cache",
94-
"**/.pytest_cache",
95-
"**/.tox",
96-
"**/.venv/",
97-
"**/__pycache__",
98-
"**/_build",
99-
]
10088
reportGeneralTypeIssues = false
10189
reportIncompatibleMethodOverride = false
10290
reportMissingParameterType = false
@@ -132,6 +120,8 @@ addopts = [
132120
"--doctest-modules",
133121
"--durations=0",
134122
"--ignore-glob=*/.ipynb_checkpoints/*",
123+
"--ignore=docs/adr/001/operators.ipynb",
124+
"--ignore=docs/adr/001/parameter_container.py",
135125
"--ignore=docs/adr/001/sympy.ipynb",
136126
"--ignore=docs/conf.py",
137127
"--nbmake",
@@ -148,7 +138,6 @@ norecursedirs = [
148138
".ipynb_checkpoints",
149139
".virtual_documents",
150140
"_build",
151-
"docs/adr",
152141
]
153142
testpaths = [
154143
".pre-commit",
@@ -314,7 +303,7 @@ commands = [
314303
"--keep-going",
315304
"--show-traceback",
316305
"docs/",
317-
"docs/_build/html",
306+
"docs/_build/html/",
318307
],
319308
]
320309
description = "Build documentation and API through Sphinx"
@@ -328,19 +317,23 @@ base = ["tool.tox.env_run_base", "tool.tox.env.doc"]
328317
commands = [
329318
[
330319
"sphinx-autobuild",
331-
"--ignore=docs/_build/",
332-
"--open-browser",
333320
"--port=0",
334-
"--re-ignore='.*/__pycache__/.*'",
335-
"--re-ignore='.*/.ipynb_checkpoints/.*'",
336-
"--re-ignore='.*/.virtual_documents/.*'",
337-
"--re-ignore='.*\\.png'",
338-
"--re-ignore='.*\\.svg'",
339-
"--re-ignore='.*\\.yaml'",
340-
"--re-ignore='.*\\.yml'",
341-
"--watch=docs",
321+
"--re-ignore=/__pycache__(/.*)?$",
322+
"--re-ignore=/_build(/.*)?$",
323+
"--re-ignore=/\\.cache(/.*)?$",
324+
"--re-ignore=/\\.egg-info(/.*)?$",
325+
"--re-ignore=/\\.ipynb_checkpoints(/.*)?$",
326+
"--re-ignore=/\\.virtual_documents(/.*)?$",
327+
"--re-ignore=/api(/.*)?$",
328+
"--re-ignore=/docs$",
329+
"--re-ignore=/version\\.py$",
330+
"--re-ignore=\\.egg-info(/.*)?$",
331+
"--re-ignore=\\.pkl$",
332+
"--re-ignore=\\.png$",
333+
"--re-ignore=\\.svg$",
334+
"--re-ignore=\\.yml$",
342335
"docs/",
343-
"docs/_build/html",
336+
"docs/_build/html/",
344337
],
345338
]
346339
description = "Set up a server to directly preview changes to the HTML pages"
@@ -377,7 +370,7 @@ commands = [
377370
"--builder=linkcheck",
378371
"--show-traceback",
379372
"docs/",
380-
"docs/_build/linkcheck",
373+
"docs/_build/linkcheck/",
381374
],
382375
]
383376
description = "Check external links in the documentation (requires internet connection)"

0 commit comments

Comments
 (0)