Skip to content

Commit bfe832c

Browse files
committed
fix everything
1 parent d6ac77a commit bfe832c

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

justfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,18 @@ install-basic:
5151
install-docs:
5252
uv sync --group docs --all-extras
5353

54+
# todo remove this when we have a real testing framework
55+
[script]
56+
_lock-python:
57+
import tomlkit
58+
import sys
59+
f='pyproject.toml'
60+
d=tomlkit.parse(open(f).read())
61+
d['project']['requires-python']='=={}'.format(sys.version.split()[0])
62+
open(f,'w').write(tomlkit.dumps(d))
63+
5464
# lock to specific python and versions of given dependencies
55-
test-lock +PACKAGES:
65+
test-lock +PACKAGES: _lock-python
5666
uv add --prerelease=allow {{ PACKAGES }}
5767

5868
# run static type checking

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ dev = [
8585
"python-dateutil>=2.9.0.post0",
8686
"ruff>=0.9.10",
8787
"selenium>=4.29.0",
88+
"tomlkit>=0.13.2",
8889
"types-pyyaml>=6.0.12.20241230",
8990
"webdriver-manager>=4.0.2",
9091
]

uv.lock

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

0 commit comments

Comments
 (0)