Skip to content

Commit

Permalink
Add Python 3.13 to the mix
Browse files Browse the repository at this point in the history
+ bump ruff version
  • Loading branch information
pre-commit-ci[bot] authored Nov 26, 2024
1 parent 6049a81 commit 0e8945c
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions:
contents: read # to fetch code (actions/checkout)

env:
PYTHON_LATEST: "3.12"
PYTHON_LATEST: "3.13"

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 2 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

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
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
]

Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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 =
Expand Down

0 comments on commit 0e8945c

Please sign in to comment.