Skip to content

Commit 0e8945c

Browse files
Add Python 3.13 to the mix
+ bump ruff version
1 parent 6049a81 commit 0e8945c

File tree

6 files changed

+14
-26
lines changed

6 files changed

+14
-26
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permissions:
88
contents: read # to fetch code (actions/checkout)
99

1010
env:
11-
PYTHON_LATEST: "3.12"
11+
PYTHON_LATEST: "3.13"
1212

1313
jobs:
1414
build:

.github/workflows/ruff.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v4
1717

1818
# keep in sync with .pre-commit-config.yaml
19-
- run: python -Im pip install --user ruff==0.7.0
19+
- run: python -Im pip install --user ruff==0.8.0
2020

2121
- name: Run ruff
2222
run: ruff check --output-format=github wagtail_footnotes

.github/workflows/test.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,16 @@ env:
2020
TOX_TESTENV_PASSENV: FORCE_COLOR
2121
PIP_DISABLE_PIP_VERSION_CHECK: "1"
2222
PIP_NO_PYTHON_VERSION_WARNING: "1"
23-
PYTHON_LATEST: "3.12"
23+
PYTHON_LATEST: "3.13"
2424

2525

2626
jobs:
2727

28-
lint:
29-
runs-on: ubuntu-latest
30-
steps:
31-
- uses: actions/checkout@v4
32-
with:
33-
fetch-depth: 0
34-
- uses: actions/setup-python@v5
35-
with:
36-
python-version: ${{env.PYTHON_LATEST}}
37-
- uses: pre-commit/action@v3.0.0
38-
3928
tests:
4029
runs-on: ubuntu-latest
41-
needs: lint
4230
strategy:
4331
matrix:
44-
python: ["3.9", "3.10", "3.11", "3.12"]
32+
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
4533

4634
steps:
4735
- uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ci:
22
autofix_prs: false
33

44
default_language_version:
5-
python: python3.12
5+
python: python3.13
66

77
repos:
88
- repo: https://github.com/pre-commit/pre-commit-hooks
@@ -19,13 +19,13 @@ repos:
1919
- id: trailing-whitespace
2020
- repo: https://github.com/astral-sh/ruff-pre-commit
2121
# Keep in sync with .github/workflows/ruff.yml
22-
rev: 'v0.7.0'
22+
rev: 'v0.8.0'
2323
hooks:
2424
- id: ruff
2525
args: [--fix, --exit-non-zero-on-fix]
2626
- id: ruff-format
2727
- repo: https://github.com/jackdewinter/pymarkdown
28-
rev: v0.9.24
28+
rev: v0.9.25
2929
hooks:
3030
- id: pymarkdown
3131
args:

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ classifiers = [
2121
"Programming Language :: Python :: 3.10",
2222
"Programming Language :: Python :: 3.11",
2323
"Programming Language :: Python :: 3.12",
24+
"Programming Language :: Python :: 3.13",
2425
"Framework :: Django",
2526
"Framework :: Django :: 4.2",
2627
"Framework :: Django :: 5.0",
@@ -34,15 +35,14 @@ dynamic = ["version"] # will read __version__ from wagtail_footnotes/__init__.p
3435
requires-python = ">=3.9"
3536
dependencies = [
3637
"Wagtail>=5.2",
37-
"Django>=3.2",
38+
"Django>=4.2",
3839
]
3940

4041
[project.optional-dependencies]
4142
testing = [
42-
"pre-commit>=3.3.0,<4",
43-
"tox>=4.6.4,<5",
44-
"ruff==0.7.0",
45-
"coverage[toml]>=7.2,<8.0",
43+
"pre-commit>=4",
44+
"tox>=4.22,<5",
45+
"coverage>=7.2,<8.0",
4646
"wagtail-modeladmin>=2.0.0",
4747
]
4848

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[tox]
2-
min_version = 4.0
2+
min_version = 4.22
33

44
envlist =
55
python{3.9,3.10,3.11}-django4.2-wagtail{5.2,6.2,6.3}
66
python{3.10,3.11,3.12}-django5.0-wagtail{5.2,6.2,6.3}
7-
python{3.10,3.11,3.12}-django5.1-wagtail6.3
7+
python{3.12,3.13}-django5.1-wagtail6.3
88

99
[gh-actions]
1010
python =

0 commit comments

Comments
 (0)