Skip to content

Commit cfa6af8

Browse files
committed
Fix code and config files to make use of Python 3.13 everywhere
Changes Made 1. .pre-commit-config.yaml - Added --target-version=py313 to Black's arguments 2. .github/workflows/publish.yml - Updated Python version from 3.12 to 3.13 3. .github/workflows/ci.yml - Fixed CI exclusions: ◦ Removed incorrect exclusions for Django 5.1 + Python 3.13 (Django 5.1 supports Python 3.13) ◦ Kept exclusions for Django 5.0 + Python 3.13 (Django 5.0 doesn't support Python 3.13) 4. pyproject.toml - Removed Python 3.13 from Django 5.0 test matrix (incompatible combination) 5. README.md - Updated test command example from test.py3.12-5.0:test to test.py3.13-5.1:test
1 parent 506d144 commit cfa6af8

File tree

5 files changed

+4
-11
lines changed

5 files changed

+4
-11
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@ jobs:
4343
python-version: "3.8"
4444
- django-version: "5.1"
4545
python-version: "3.9"
46-
- django-version: "5.1"
47-
python-version: "3.10"
48-
- django-version: "5.1"
49-
python-version: "3.11"
50-
- django-version: "5.1"
51-
python-version: "3.12"
52-
- django-version: "5.1"
53-
python-version: "3.13"
5446
runs-on: ${{ matrix.os }}
5547
steps:
5648
- uses: actions/checkout@v5

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Python
2323
uses: actions/setup-python@v6
2424
with:
25-
python-version: "3.12"
25+
python-version: "3.13"
2626
cache: "pip"
2727
- name: Install dependencies
2828
run: |

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ repos:
2525
- "--target-version=py310"
2626
- "--target-version=py311"
2727
- "--target-version=py312"
28+
- "--target-version=py313"
2829
types: [python]
2930

3031
- repo: https://github.com/pre-commit/pre-commit-hooks

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Running Tests
9696

9797
`hatch run test:test` will run the tests in every Python + Django versions combination.
9898

99-
`hatch run test.py3.12-5.0:test`: will run them for python 3.12 and Django 5.0. Please see possible combinations using
99+
`hatch run test.py3.13-5.1:test`: will run them for python 3.13 and Django 5.1. Please see possible combinations using
100100
`hatch env show` ("test" matrix).
101101

102102

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ python = ["3.8","3.9", "3.10", "3.11", "3.12", "3.13"]
9898

9999
[[tool.hatch.envs.test.matrix]]
100100
django = ["5.0"]
101-
python = ["3.10", "3.11", "3.12", "3.13"]
101+
python = ["3.10", "3.11", "3.12"]
102102

103103
[[tool.hatch.envs.test.matrix]]
104104
django = ["5.1"]

0 commit comments

Comments
 (0)