Skip to content

Commit 7b6157d

Browse files
committed
Move to 3.11
1 parent 835e9c7 commit 7b6157d

File tree

6 files changed

+7
-12
lines changed

6 files changed

+7
-12
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@v4
1515
with:
16-
python-version: "3.10"
16+
python-version: "3.11"
1717
cache: "pip"
1818
cache-dependency-path: requirements.*.txt
1919

.pre-commit-config.yaml

Lines changed: 2 additions & 2 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.11
44
repos:
55
- repo: https://github.com/adamchainz/django-upgrade
66
rev: 1.17.0
@@ -23,4 +23,4 @@ repos:
2323
hooks:
2424
- id: pyupgrade
2525
args:
26-
- --py310-plus
26+
- --py311-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 = "py311"
4141

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

requirements.dev.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,7 @@ text-unidecode==1.3
5959
toml==0.10.2
6060
# via pre-commit
6161
tomli==2.2.1
62-
# via
63-
# -c requirements.prod.txt
64-
# coverage
65-
# mypy
66-
# pytest
62+
# via pytest
6763
types-requests==2.27.7
6864
# via -r requirements.dev.in
6965
types-urllib3==1.26.7

requirements.prod.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +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
8886
urllib3==2.4.0
8987
# via requests
9088
werkzeug==2.0.2

0 commit comments

Comments
 (0)