fix: replace datetime.UTC with timezone.utc for Python 3.10 compatibility
datetime.UTC was introduced in Python 3.11. Users on 3.10 get an ImportError. Also lower ruff/mypy target-version from py313 to py310 to match minimum supported version.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[tool.ruff]
|
||||
target-version = "py313"
|
||||
target-version = "py310"
|
||||
line-length = 120
|
||||
exclude = ["migrations", ".venv"]
|
||||
|
||||
@@ -11,7 +11,7 @@ ignore = ["B008"]
|
||||
"tests/**" = ["E501"]
|
||||
|
||||
[tool.mypy]
|
||||
python_version = "3.13"
|
||||
python_version = "3.10"
|
||||
strict = true
|
||||
ignore_missing_imports = true
|
||||
exclude = ["migrations", ".venv"]
|
||||
|
||||
Reference in New Issue
Block a user