Skip to content

Commit ddc8e5a

Browse files
authored
Merge pull request #268 from classy-python/bump-python
Upgrade Python 3.10 -> 3.13
2 parents 8cb1916 + f3e0ceb commit ddc8e5a

File tree

6 files changed

+9
-24
lines changed

6 files changed

+9
-24
lines changed

.github/workflows/python-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Set up Python
1414
uses: actions/setup-python@v5
1515
with:
16-
python-version: "3.10"
16+
python-version: "3.13"
1717
cache: "pip"
1818
cache-dependency-path: requirements.*.txt
1919

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
default_language_version:
3-
python: python3.10
3+
python: python3.13
44
repos:
55
- repo: https://github.com/adamchainz/django-upgrade
66
rev: 1.24.0
@@ -14,13 +14,13 @@ repos:
1414
- id: black
1515

1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: v0.4.4
17+
rev: v0.11.7
1818
hooks:
1919
- id: ruff
2020

2121
- repo: https://github.com/asottile/pyupgrade
22-
rev: v3.15.2
22+
rev: v3.19.1
2323
hooks:
2424
- id: pyupgrade
2525
args:
26-
- --py310-plus
26+
- --py313-plus

mypy-ratchet.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"cbv/importer/importers.py": {
33
"Call to untyped function \"get_code\" in typed context [no-untyped-call]": 1,
44
"Function is missing a type annotation [no-untyped-def]": 1,
5-
"Function is missing a type annotation for one or more arguments [no-untyped-def]": 12
5+
"Function is missing a type annotation for one or more arguments [no-untyped-def]": 12,
6+
"Module has no attribute \"formatargspec\" [attr-defined]": 1
67
},
78
"cbv/management/commands/cbv_dumpversion.py": {
89
"Function is missing a type annotation [no-untyped-def]": 1

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ python_files = [
3737
extend-exclude = [
3838
".env",
3939
]
40-
target-version = "py310"
40+
target-version = "py313"
4141

4242
[tool.ruff.lint]
4343
extend-select = [

requirements.dev.txt

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ coverage==7.8.0
66
# via -r requirements.dev.in
77
distlib==0.3.9
88
# via virtualenv
9-
exceptiongroup==1.2.2
10-
# via pytest
119
factory-boy==3.2.0
1210
# via -r requirements.dev.in
1311
faker==9.3.1
@@ -52,19 +50,11 @@ six==1.16.0
5250
# python-dateutil
5351
text-unidecode==1.3
5452
# via faker
55-
tomli==2.2.1
56-
# via
57-
# -c requirements.prod.txt
58-
# coverage
59-
# mypy
60-
# pytest
6153
types-requests==2.27.7
6254
# via -r requirements.dev.in
6355
types-urllib3==1.26.7
6456
# via types-requests
6557
typing-extensions==4.13.2
66-
# via
67-
# -c requirements.prod.txt
68-
# mypy
58+
# via mypy
6959
virtualenv==20.30.0
7060
# via pre-commit

requirements.prod.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,6 @@ sphinxcontrib-serializinghtml==2.0.0
8383
# via sphinx
8484
sqlparse==0.5.3
8585
# via django
86-
tomli==2.2.1
87-
# via sphinx
88-
typing-extensions==4.13.2
89-
# via
90-
# asgiref
91-
# environs
9286
urllib3==2.4.0
9387
# via requests
9488
werkzeug==3.1.3

0 commit comments

Comments
 (0)