Skip to content

Commit 4395d7c

Browse files
committed
Avoid mutating lockfile, format to pinned python version
1 parent 925b3bf commit 4395d7c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
@nox.session(name="dev", python=False)
6969
def create_dev_environment(session: nox.Session) -> None:
7070
"""Create a development environment."""
71-
session.run_install("uv", "sync")
71+
session.run_install("uv", "sync", "--frozen")
7272

7373

7474
@nox.session(name="test", python=PYTHON_VERSION)
@@ -131,7 +131,7 @@ def build_artifacts(session: nox.Session) -> None:
131131
@nox.session(name="lock", python=False)
132132
def validate_lock_file(session: nox.Session) -> None:
133133
"""Ensure the uv.lock file exists and is aligned with dependencies."""
134-
session.run("uv", "lock")
134+
session.run("uv", "lock", "--check")
135135

136136

137137
@nox.session(name="clean", python=False)

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ homepage = "https://github.com/[ORG NAME]/[REPO NAME]"
4242

4343
[tool.black]
4444
line-length = 100
45+
target-version = ["py311"]
4546

4647
[tool.mypy]
4748
check_untyped_defs = true

0 commit comments

Comments
 (0)