Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ concurrency:
cancel-in-progress: true

permissions:
actions: write
contents: read
checks: write
id-token: write
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/dependabotautomerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ concurrency:
cancel-in-progress: true

permissions:
actions: write
contents: write
pull-requests: write

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish Docker Image

permissions:
actions: write
contents: read
checks: write
id-token: write
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ repos:

# Run the Ruff linter.
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.1
rev: v0.14.6
hooks:
# Linter
- id: ruff
Expand All @@ -38,7 +38,7 @@ repos:
- id: ruff-format

- repo: https://github.com/kynan/nbstripout
rev: 0.8.1
rev: 0.8.2
hooks:
- id: nbstripout

Expand Down
166 changes: 85 additions & 81 deletions dask-test/uv.lock

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions docker-health-check/docker_health_check/api/healthcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@
from typing import TYPE_CHECKING, Any

import anyio
import backoff
import requests
from docker.client import DockerClient
from tabulate import tabulate
from tenacity import (
retry,
retry_if_exception,
stop_after_attempt,
wait_exponential,
)

from docker_health_check import __version__, constants, utils
from docker_health_check.models import ContainerRow
Expand All @@ -34,7 +39,11 @@ async def _restart(state: tuple[ContainerRow, NotificationHub]) -> None:
notification_hub.enqueue(message)


@backoff.on_exception(backoff.expo, requests.exceptions.RequestException, max_tries=constants.MAX_RETRY)
@retry(
retry=retry_if_exception(lambda ex: isinstance(ex, requests.exceptions.RequestException)),
wait=wait_exponential(),
stop=stop_after_attempt(constants.MAX_RETRY),
)
def _get_containers(client: DockerClient, filters: dict[str, Any] | None) -> Iterable[ContainerRow]:
containers = client.containers.list(filters=filters)
return map(ContainerRow.from_container, containers)
Expand Down
2 changes: 1 addition & 1 deletion docker-health-check/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies = [
"tabulate<1.0.0,>=0.9.0",
"pydantic<3.0.0,>=2.9.2",
"pydantic-settings<3.0.0,>=2.6.0",
"backoff<3.0.0,>=2.2.1",
"tenacity>=9.1.2",
]

[dependency-groups]
Expand Down
211 changes: 110 additions & 101 deletions docker-health-check/uv.lock

Large diffs are not rendered by default.

17 changes: 11 additions & 6 deletions github/github/httpclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@
from http import HTTPMethod, HTTPStatus
from typing import TYPE_CHECKING, Any, Final, Self, cast

import backoff
from curl_cffi import requests
from tenacity import (
retry,
retry_if_exception,
stop_after_attempt,
stop_after_delay,
wait_exponential,
)

from github import constants

Expand Down Expand Up @@ -68,11 +74,10 @@ async def _execute(
async with self._make_request(method, url, headers, params=params) as response:
assert response.status_code == HTTPStatus.NO_CONTENT

@backoff.on_exception(
backoff.expo,
requests.exceptions.RequestException,
max_tries=constants.MAX_RETRIES,
max_time=constants.MAX_RETRY_TIME,
@retry(
retry=retry_if_exception(lambda ex: isinstance(ex, requests.exceptions.RequestException)),
wait=wait_exponential(),
stop=stop_after_attempt(constants.MAX_RETRIES) | stop_after_delay(constants.MAX_RETRY_TIME),
)
@asynccontextmanager
async def _make_request(
Expand Down
2 changes: 1 addition & 1 deletion github/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ classifiers = [
requires-python = "<4.0,>=3.14"
dependencies = [
"asyncclick<9.0.0.0,>=8.1.7.2",
"backoff<3.0.0,>=2.2.1",
"tenacity>=9.1.2",
"pyjwt<3.0.0,>=2.9.0",
"cryptography<45.0.0,>=44.0.0",
"curl-cffi>=0.13.0",
Expand Down
332 changes: 168 additions & 164 deletions github/uv.lock

Large diffs are not rendered by default.

166 changes: 85 additions & 81 deletions hadoop/uv.lock

Large diffs are not rendered by default.

355 changes: 175 additions & 180 deletions jupyter/uv.lock

Large diffs are not rendered by default.