diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4c4adc2..5a6759f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,7 +8,7 @@ permissions: contents: read # to fetch code (actions/checkout) env: - PYTHON_LATEST: "3.12" + PYTHON_LATEST: "3.13" jobs: build: diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 31fb2ab..403c122 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v4 # keep in sync with .pre-commit-config.yaml - - run: python -Im pip install --user ruff==0.7.0 + - run: python -Im pip install --user ruff==0.8.0 - name: Run ruff run: ruff check --output-format=github wagtail_footnotes diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6a4ef53..eabcd8a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,28 +20,16 @@ env: TOX_TESTENV_PASSENV: FORCE_COLOR PIP_DISABLE_PIP_VERSION_CHECK: "1" PIP_NO_PYTHON_VERSION_WARNING: "1" - PYTHON_LATEST: "3.12" + PYTHON_LATEST: "3.13" jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: actions/setup-python@v5 - with: - python-version: ${{env.PYTHON_LATEST}} - - uses: pre-commit/action@v3.0.0 - tests: runs-on: ubuntu-latest - needs: lint strategy: matrix: - python: ["3.9", "3.10", "3.11", "3.12"] + python: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a04a79f..db6ace6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ ci: autofix_prs: false default_language_version: - python: python3.12 + python: python3.13 repos: - repo: https://github.com/pre-commit/pre-commit-hooks @@ -19,13 +19,13 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit # Keep in sync with .github/workflows/ruff.yml - rev: 'v0.7.0' + rev: 'v0.8.0' hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - id: ruff-format - repo: https://github.com/jackdewinter/pymarkdown - rev: v0.9.24 + rev: v0.9.25 hooks: - id: pymarkdown args: diff --git a/pyproject.toml b/pyproject.toml index bcad362..39a66f1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Framework :: Django", "Framework :: Django :: 4.2", "Framework :: Django :: 5.0", @@ -34,15 +35,14 @@ dynamic = ["version"] # will read __version__ from wagtail_footnotes/__init__.p requires-python = ">=3.9" dependencies = [ "Wagtail>=5.2", - "Django>=3.2", + "Django>=4.2", ] [project.optional-dependencies] testing = [ - "pre-commit>=3.3.0,<4", - "tox>=4.6.4,<5", - "ruff==0.7.0", - "coverage[toml]>=7.2,<8.0", + "pre-commit>=4", + "tox>=4.22,<5", + "coverage>=7.2,<8.0", "wagtail-modeladmin>=2.0.0", ] diff --git a/tox.ini b/tox.ini index e61595d..65d9908 100644 --- a/tox.ini +++ b/tox.ini @@ -1,10 +1,10 @@ [tox] -min_version = 4.0 +min_version = 4.22 envlist = python{3.9,3.10,3.11}-django4.2-wagtail{5.2,6.2,6.3} python{3.10,3.11,3.12}-django5.0-wagtail{5.2,6.2,6.3} - python{3.10,3.11,3.12}-django5.1-wagtail6.3 + python{3.12,3.13}-django5.1-wagtail6.3 [gh-actions] python =