From c76d6e398590ebd7e9bec924a3c74889526053af Mon Sep 17 00:00:00 2001 From: Danny Willems Date: Tue, 27 Jan 2026 12:56:09 -0300 Subject: [PATCH 1/2] CI: add pip-audit security scanning --- .github/workflows/actions.yml | 7 +++++-- pyproject.toml | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index c5f4865..f87ec35 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -11,8 +11,8 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install poetry @@ -25,3 +25,6 @@ jobs: run: poetry run pytest tests - name: Run black run: poetry run black leakix/*.py tests/*.py example/*.py --check + - name: Security audit + if: matrix.python-version != '3.7' + run: poetry run pip-audit diff --git a/pyproject.toml b/pyproject.toml index fbf0557..75de72a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,6 +17,7 @@ black = "*" mypy = "*" requests-mock = "*" pylint = "*" +pip-audit = "*" [build-system] requires = ["poetry-core>=1.0.0"] From 0484caa219ce5436b859f0e52b311315f55ae86b Mon Sep 17 00:00:00 2001 From: Danny Willems Date: Tue, 27 Jan 2026 23:36:52 -0300 Subject: [PATCH 2/2] Modernize to Python 3.13, Poetry 2.3.1, fix formatting --- .github/workflows/actions.yml | 5 ++--- example/example_client.py | 1 - leakix/client.py | 1 - pyproject.toml | 4 ++-- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index f87ec35..81ca277 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -6,8 +6,8 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] - poetry-version: ["1.4.0"] + python-version: ["3.13"] + poetry-version: ["2.3.1"] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: @@ -26,5 +26,4 @@ jobs: - name: Run black run: poetry run black leakix/*.py tests/*.py example/*.py --check - name: Security audit - if: matrix.python-version != '3.7' run: poetry run pip-audit diff --git a/example/example_client.py b/example/example_client.py index 484671d..4dc48b9 100644 --- a/example/example_client.py +++ b/example/example_client.py @@ -5,7 +5,6 @@ from leakix.plugin import Plugin from datetime import datetime, timedelta - API_KEY = decouple.config("API_KEY") CLIENT = Client(api_key=API_KEY) diff --git a/leakix/client.py b/leakix/client.py index d9d259d..63b51c3 100644 --- a/leakix/client.py +++ b/leakix/client.py @@ -11,7 +11,6 @@ from leakix.field import * from leakix.domain import L9Subdomain - __VERSION__ = "0.1.9" diff --git a/pyproject.toml b/pyproject.toml index 75de72a..0d72f43 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,12 +5,12 @@ description = "Official python client for LeakIX (https://leakix.net)" authors = ["Danny Willems "] [tool.poetry.dependencies] -python = "^3.7" +python = "^3.13" requests = "*" l9format = "=1.3.1a3" fire = "^0.5.0" -[tool.poetry.dev-dependencies] +[tool.poetry.group.dev.dependencies] python-decouple = "*" pytest = "*" black = "*"