Skip to content

Commit 27e2e88

Browse files
committed
fix: align dependencies and tool config for Python 3.9+
- Add missing rhosocial-activerecord in requirements.txt - Move aioodbc to optional-dependencies.async group - Update black/ruff/mypy target-version from py38 to py39 - Remove aioodbc from requirements.txt (use pip install .[async])
1 parent db5a7ce commit 27e2e88

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

‎pyproject.toml‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ dependencies = [
4242
rhosocial-activerecord-sqlserver = "rhosocial.activerecord.backend.impl.sqlserver.__main__:main"
4343

4444
[project.optional-dependencies]
45+
# Async support
46+
async = [
47+
"aioodbc>=0.5.0",
48+
]
49+
# Development dependencies
4550
test = [
4651
"PyYAML>=6.0",
4752
"pytest",
@@ -103,7 +108,7 @@ exclude_lines = [
103108

104109
[tool.black]
105110
line-length = 100
106-
target-version = ["py38", "py39", "py310", "py311", "py312", "py313", "py314"]
111+
target-version = ["py39", "py310", "py311", "py312", "py313", "py314"]
107112
include = '\.pyi?$'
108113

109114
[tool.isort]
@@ -113,12 +118,12 @@ line_length = 100
113118

114119
[tool.ruff]
115120
line-length = 120
116-
target-version = "py38"
121+
target-version = "py39"
117122
select = ["E", "F", "B"]
118123
ignore = []
119124

120125
[tool.mypy]
121-
python_version = "3.8"
126+
python_version = "3.9"
122127
warn_return_any = true
123128
warn_unused_configs = true
124129
disallow_untyped_defs = true

‎requirements.txt‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
# requirements.txt
2+
# Core dependency
3+
rhosocial-activerecord
4+
5+
# SQL Server driver
16
pyodbc>=5.3.0
2-
aioodbc>=0.5.0

0 commit comments

Comments
 (0)