Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
ci:
uses: community-of-python/community-workflow/.github/workflows/preset.yml@main
with:
python-version: '["3.12","3.13"]'
python-version: '["3.10", "3.12","3.13"]'
secrets: inherit
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ readme = "README.md"
keywords = ["s3", "kaspersky", "antivirus", "upload"]
classifiers = [
"Natural Language :: English",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries",
Expand All @@ -13,7 +14,7 @@ classifiers = [
]
authors = [{ name = "community-of-python" }]
dynamic = ["version"]
requires-python = ">=3.12"
requires-python = ">=3.10"
dependencies = [
"httpx",
"aioboto3",
Expand Down
2 changes: 1 addition & 1 deletion safe_s3_storage/file_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def _is_image(mime_type: str) -> bool:
return mime_type.startswith("image/")


class ImageConversionFormat(enum.StrEnum):
class ImageConversionFormat(str, enum.Enum):
jpeg = enum.auto()
webp = enum.auto()

Expand Down
2 changes: 1 addition & 1 deletion safe_s3_storage/kaspersky_scan_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class KasperskyScanEngineRequest(pydantic.BaseModel):


# https://support.kaspersky.ru/scan-engine/2.1/193001
class KasperskyScanEngineScanResult(enum.StrEnum):
class KasperskyScanEngineScanResult(str, enum.Enum):
CLEAN = "CLEAN"
DETECT = "DETECT"
DISINFECTED = "DISINFECTED"
Expand Down