Bump to Python 3.14, Django 6.1 and ruff 0.17

Django 6.1 requires MySQL 8.4 or MariaDB 10.11 or newer.
This commit is contained in:
ponas committed 2026-10-23 02:19:19 +02:00
1 parent ff7698f9c1
commit 0a65bb2c90
8 files changed
+53 -144

No files matched your search

+11 -7
View File
@@ -3,17 +3,17 @@ name = "bbs"
version = "0.1.0"
description = ""
authors = [{ name = "Nikolai R Kristiansen", email = "nikolaik@gmail.com" }]
requires-python = ">=3.11"
requires-python = ">=3.14"
license = "MIT"
dependencies = [
"django-cors-headers>=4.9.0,<5",
"django-extensions>=4.1,<5",
"Django==5.2.*",
"Django>=6.0,<7",
"easy-thumbnails>=2.8.1,<3",
"gunicorn>=22.0.0,<27",
"mysqlclient>=2.0.3,<3",
"gunicorn>=26.0,<27",
"mysqlclient>=2.2,<3",
"Pillow>=13.0.0,<14",
"sentry-sdk>=1.5.5,<2",
"sentry-sdk>=2.61,<3",
"strawberry-graphql-django>=0.93,<0.94",
"strawberry-graphql>=0.330.3,<0.337",
]
@@ -31,7 +31,7 @@ show_missing = true
[dependency-groups]
dev = [
"ruff==0.11.7",
"ruff==0.17.2",
"pytest-django",
"pytest",
"pytest-cov>=7.1.0",
@@ -39,7 +39,7 @@ dev = [
[tool.ruff]
line-length = 120
target-version = "py311"
target-version = "py314"
[tool.ruff.lint]
select = ["ALL"]
@@ -54,6 +54,8 @@ ignore = [
"TRY003", # Allow long exception messages
"E501", # Allow long lines
"COM812", "ISC001", # Avoid conflicting with ruff formatter
"CPY", # No copyright headers
"TC", # Strawberry/Django process annotations at runtime, can't defer imports
]
[tool.ruff.lint.per-file-ignores]
@@ -61,3 +63,5 @@ ignore = [
"bbs/tests/*.py" = ["S101", "S106", "PLR2004"]
"**/test_*.py" = ["S101", "S106", "PLR2004"]
"**/tests.py" = ["S101", "S106", "PLR2004"]
# strawberry.lazy with TYPE_CHECKING-guarded imports requires string annotations
"bbs/api/types/*.py" = ["UP037"]