Skip to content

Commit ad05f29

Browse files
authored
Merge pull request #153 from lsst-sqre/u/rra/dependencies
Update Python and pre-commit dependencies
2 parents 60e8137 + 0ab74dc commit ad05f29

8 files changed

Lines changed: 502 additions & 429 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ env:
44
# Current supported uv version. The uv documentation recommends pinning
55
# this. The version should match the version used in .pre-commit-config.yaml
66
# and frozen in uv.lock.
7-
UV_VERSION: "0.9.18"
7+
UV_VERSION: "0.10.5"
88

99
"on":
1010
merge_group: {}

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ env:
44
# Current supported uv version. The uv documentation recommends pinning
55
# this. The version should match the version used in .pre-commit-config.yaml
66
# and frozen in uv.lock.
7-
UV_VERSION: "0.9.18"
7+
UV_VERSION: "0.10.5"
88

99
"on":
1010
push:

.github/workflows/periodic-ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99
# Current supported uv version. The uv documentation recommends pinning
1010
# this. The version should match the version used in .pre-commit-config.yaml
1111
# and frozen in uv.lock.
12-
UV_VERSION: "0.9.18"
12+
UV_VERSION: "0.10.5"
1313

1414
"on":
1515
schedule:

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ repos:
77
- id: trailing-whitespace
88

99
- repo: https://github.com/astral-sh/uv-pre-commit
10-
rev: 0.9.18
10+
rev: 0.10.4
1111
hooks:
1212
- id: uv-lock
1313

1414
- repo: https://github.com/astral-sh/ruff-pre-commit
15-
rev: v0.14.9
15+
rev: v0.15.2
1616
hooks:
1717
- id: ruff-check
1818
args: [--fix, --exit-non-zero-on-fix]

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# - Runs a non-root user.
1313
# - Sets up the entrypoint and port.
1414

15-
FROM python:3.13.3-slim-bookworm AS base-image
15+
FROM python:3.13.12-slim-bookworm AS base-image
1616

1717
# Update system packages
1818
COPY scripts/install-base-packages.sh .
@@ -23,7 +23,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
2323
FROM base-image AS install-image
2424

2525
# Install uv.
26-
COPY --from=ghcr.io/astral-sh/uv:0.9.18 /uv /bin/uv
26+
COPY --from=ghcr.io/astral-sh/uv:0.10.5 /uv /bin/uv
2727

2828
# Install system packages only needed for building dependencies.
2929
COPY scripts/install-dependency-packages.sh .

ruff-shared.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ ignore = [
3333
"ARG003", # unused class method arguments are often legitimate
3434
"ARG005", # unused lambda arguments are often legitimate
3535
"ASYNC109", # many async functions use asyncio.timeout internally
36+
"ASYNC240", # we don't want to run filesystem operations on threads
3637
"BLE001", # we want to catch and report Exception in background tasks
3738
"C414", # nested sorted is how you sort by multiple keys with reverse
3839
"D102", # sometimes we use docstring inheritence
@@ -146,5 +147,8 @@ builtins-ignorelist = [
146147
fixture-parentheses = false
147148
mark-parentheses = false
148149

150+
[lint.isort]
151+
split-on-trailing-comma = false
152+
149153
[lint.pydocstyle]
150154
convention = "numpy"

src/noteburst/config/worker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from enum import Enum
5+
from enum import StrEnum
66
from pathlib import Path
77
from typing import Annotated, Self
88

@@ -23,7 +23,7 @@
2323
]
2424

2525

26-
class JupyterImageSelector(str, Enum):
26+
class JupyterImageSelector(StrEnum):
2727
"""Possible ways of selecting a JupyterLab image."""
2828

2929
recommended = "recommended"
@@ -36,7 +36,7 @@ class JupyterImageSelector(str, Enum):
3636
"""Select a specific image by reference."""
3737

3838

39-
class WorkerKeepAliveSetting(str, Enum):
39+
class WorkerKeepAliveSetting(StrEnum):
4040
"""Modes for the worker keep-alive function."""
4141

4242
disabled = "disabled"

uv.lock

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

0 commit comments

Comments
 (0)