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
3 changes: 3 additions & 0 deletions .clabot
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"contributors": "https://api.infrasonar.com/contributors"
}
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
- uses: actions/checkout@v6
- name: Set up Python 3.14
uses: actions/setup-python@v6
with:
python-version: 3.12
python-version: 3.14
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -26,4 +26,4 @@ jobs:
find . -name \*.py -exec pycodestyle {} +
- name: Type checking with PyRight
run: |
pyright
pyright
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v6

- name: Log in to the Container registry
uses: docker/login-action@v2
uses: docker/login-action@v4
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v6
with:
images: ${{ env.REGISTRY }}/infrasonar/http-probe

Expand All @@ -38,7 +38,7 @@ jobs:
run: echo "VERSION=$(echo $GITHUB_REF | cut -d / -f 3)" >> $GITHUB_OUTPUT

- name: Build and push Docker image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v7
env:
PAT: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v6

- name: Log in to the Container registry
uses: docker/login-action@v2
uses: docker/login-action@v4
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v6
with:
images: ${{ env.REGISTRY }}/infrasonar/http-probe

Expand All @@ -39,7 +39,7 @@ jobs:
run: echo "VERSION=$(echo $GITHUB_REF | cut -d / -f 3)" >> $GITHUB_OUTPUT

- name: Build and push Docker image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v7
env:
PAT: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/infrasonar/python:3.12.9
FROM ghcr.io/infrasonar/python:3.14.3
ADD . /code
WORKDIR /code
RUN pip install --no-cache-dir -r requirements.txt
Expand Down
3 changes: 1 addition & 2 deletions lib/connector.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from typing import Optional
import ssl
import aiohttp
import asyncio
Expand All @@ -23,7 +22,7 @@

def get_connector(
verify_ssl: bool,
loop: Optional[asyncio.AbstractEventLoop] = None
loop: asyncio.AbstractEventLoop | None = None
) -> aiohttp.TCPConnector:
if loop is None:
loop = asyncio.get_running_loop()
Expand Down
2 changes: 1 addition & 1 deletion lib/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from urllib.parse import urlparse


def check_config(uri):
def check_config(uri: str):
o = urlparse(uri)
if o.scheme not in ('http', 'https'):
raise Exception(f'uri should start with "http" or "https", got: {uri}')
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
aiohttp== 3.13.2
libprobe==2.0.2
aiohttp==3.13.5
libprobe==2.0.6