Skip to content

Commit 9b37cf5

Browse files
chore: expand CI matrix and upgrade dev tooling (#158)
1 parent 32598be commit 9b37cf5

6 files changed

Lines changed: 575 additions & 339 deletions

File tree

.github/workflows/test.yml

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-python@v4
1515
with:
16-
python-version: "3.11.0"
16+
python-version: "3.11"
1717
- run: pip install pre-commit
1818
- run: pre-commit run --all-files
1919
env:
@@ -24,14 +24,43 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
python-version: [ "3.9.18", "3.10.13", "3.11.7", "3.12.1" ]
28-
django-version: [ "4.2", "5.0", "5.1" ]
27+
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14" ]
28+
django-version: [ "4.2", "5.0", "5.1", "5.2", "6.0" ]
2929
exclude:
30-
# Django v5 drops Python <3.10 support
31-
- django-version: 5.0
32-
python-version: 3.9.18
33-
- django-version: 5.1
34-
python-version: 3.9.18
30+
# Django 4.2 does not support Python 3.13+
31+
- django-version: "4.2"
32+
python-version: "3.13"
33+
- django-version: "4.2"
34+
python-version: "3.14"
35+
# Django 5.x drops Python <3.10 support
36+
- django-version: "5.0"
37+
python-version: "3.8"
38+
- django-version: "5.0"
39+
python-version: "3.9"
40+
- django-version: "5.1"
41+
python-version: "3.8"
42+
- django-version: "5.1"
43+
python-version: "3.9"
44+
- django-version: "5.2"
45+
python-version: "3.8"
46+
- django-version: "5.2"
47+
python-version: "3.9"
48+
# Django 5.0 does not support Python 3.13+
49+
- django-version: "5.0"
50+
python-version: "3.13"
51+
- django-version: "5.0"
52+
python-version: "3.14"
53+
# Django 6.0 requires Python 3.13+
54+
- django-version: "6.0"
55+
python-version: "3.8"
56+
- django-version: "6.0"
57+
python-version: "3.9"
58+
- django-version: "6.0"
59+
python-version: "3.10"
60+
- django-version: "6.0"
61+
python-version: "3.11"
62+
- django-version: "6.0"
63+
python-version: "3.12"
3564
steps:
3665
- uses: actions/checkout@v3
3766
- uses: actions/setup-python@v4
@@ -40,7 +69,7 @@ jobs:
4069
- uses: snok/install-poetry@v1
4170
with:
4271
virtualenvs-create: false
43-
version: 1.2.2
72+
version: 1.8.5
4473
- run: |
4574
pip install virtualenv
4675
virtualenv .venv

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/ambv/black
3-
rev: 23.12.1
3+
rev: 26.3.1
44
hooks:
55
- id: black
66
args: ['--quiet']
@@ -16,7 +16,7 @@ repos:
1616
- id: detect-private-key
1717
- id: double-quote-string-fixer
1818
- repo: https://github.com/pycqa/flake8
19-
rev: 6.1.0
19+
rev: 7.3.0
2020
hooks:
2121
- id: flake8
2222
additional_dependencies: [
@@ -31,10 +31,10 @@ repos:
3131
]
3232
args: ['--enable-extensions=G']
3333
- repo: https://github.com/asottile/pyupgrade
34-
rev: v3.15.0
34+
rev: v3.21.2
3535
hooks:
3636
- id: pyupgrade
37-
args: ["--py36-plus"]
37+
args: ["--py38-plus"]
3838
- repo: https://github.com/pycqa/isort
3939
rev: 5.13.2
4040
hooks:
@@ -43,7 +43,7 @@ repos:
4343
- id: isort
4444
files: 'tests/.*'
4545
- repo: https://github.com/pre-commit/mirrors-mypy
46-
rev: v1.8.0
46+
rev: v1.19.1
4747
hooks:
4848
- id: mypy
4949
additional_dependencies:

demoproj/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
1. Import the include() function: from django.urls import include, path
1414
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
1515
"""
16+
1617
from django.urls import path
1718

1819
from demoproj.views.sync_views import index_view, no_guid, rest_view

manage.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
"""Django's command-line utility for administrative tasks."""
3+
34
import os
45
import sys
56

0 commit comments

Comments
 (0)