Skip to content

Commit f502678

Browse files
authored
More uv related upgrade changes. (#11)
1 parent 26b77fc commit f502678

File tree

9 files changed

+432
-432
lines changed

9 files changed

+432
-432
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ repos:
2929

3030
# Run the Ruff linter.
3131
- repo: https://github.com/astral-sh/ruff-pre-commit
32-
rev: v0.11.0
32+
rev: v0.11.2
3333
hooks:
3434
# Linter
3535
- id: ruff

dask-test/uv.lock

Lines changed: 83 additions & 83 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
from __future__ import annotations
22

3-
from pydantic_settings import BaseSettings
3+
from pydantic_settings import BaseSettings, SettingsConfigDict
44

55
from docker_health_check.settings.email import EmailSettings
66

77

88
class Settings(BaseSettings):
9-
email: EmailSettings | None = None
9+
model_config = SettingsConfigDict(env_nested_delimiter="__")
1010

11-
class Config:
12-
env_nested_delimiter = "__"
11+
email: EmailSettings | None = None
1312

1413

1514
settings = Settings()

docker-health-check/uv.lock

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

github/uv.lock

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

hadoop/uv.lock

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

jupyter/uv.lock

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

scripts/check.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ function run_cmd() {
88
local CMD="$1"
99
shift 1
1010

11-
if command -v "$CMD" &> /dev/null; then
12-
echo "$CMD" "$@"
13-
"$CMD" "$@"
11+
if uv run --frozen which "$CMD" &> /dev/null; then
12+
echo uv run --frozen "$CMD" "$@"
13+
uv run --frozen "$CMD" "$@"
1414
fi
1515
}
1616

scripts/remove-python.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ function log() {
2020

2121
set -euo pipefail
2222

23-
VENV_PATHS=$(find "${PYTHON_ROOT_PATH}" -name ".venv" -prune)
24-
PATHS_TO_REMOVE=("${PATHS_TO_REMOVE[@]}" "${VENV_PATHS}")
23+
VENV_PATHS=$(find "${PYTHON_ROOT_PATH}" -name ".venv" -prune | tr '\n' ' ')
24+
IFS=' ' read -ra VENV_PATHS_TO_REMOVE <<< "$VENV_PATHS"
25+
PATHS_TO_REMOVE+=("${VENV_PATHS_TO_REMOVE[@]}")
2526

2627
for PATH_TO_REMOVE in "${PATHS_TO_REMOVE[@]}"
2728
do

0 commit comments

Comments
 (0)