Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Python < 3.10 #133

Closed
wants to merge 3 commits into from
Closed
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/python-poetry-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.10", "3.11", "3.12"]
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand Down
11 changes: 9 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include = ["CHANGELOG.md"]
license = "GPL-3.0-only"

[tool.poetry.dependencies]
python = ">=3.10,<4.0"
python = ">=3.8,<4.0"
spond = ">=1.0.0"
pydantic = ">=2.7.1"

Expand Down Expand Up @@ -53,10 +53,17 @@ ignore = ["COM812", "ISC001", "D205"]
# F841 Local variable is assigned to but never used (triggered by testing raises)
"**/{tests}/*" = ["S101", "F841"]

# Ignore rules that conflict with Mypy
# Ignore rules that conflict with Mypy:
# PLC0414 Import alias does not rename original package
"__init__.py" = ["PLC0414"]

# Ignore rules that conflict with Pydantic:
# TCH001 Move application import ... into a type-checking block
# TCH003 Move standard library import ... into a type-checking block
"event.py" = ["TCH003"] # `datetime.datetime`
"group.py" = ["TCH001"] # `.member.Member`
"member.py" = ["TCH001", "TCH003"] # `.profile.Profile`, `datetime.datetime`

[tool.ruff.lint.pydocstyle]
convention = "numpy"

Expand Down
2 changes: 2 additions & 0 deletions spond_classes/event.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Module containing `Event` class and nested `EventType`,`Responses` classes."""

from __future__ import annotations

from datetime import datetime
from enum import Enum

Expand Down
2 changes: 2 additions & 0 deletions spond_classes/group.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Module containing `Group` class."""

from __future__ import annotations

from pydantic import BaseModel, Field

from .member import Member
Expand Down
2 changes: 2 additions & 0 deletions spond_classes/member.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Module containing `Member` class."""

from __future__ import annotations

from datetime import datetime

from pydantic import BaseModel, Field
Expand Down
Loading