Skip to content

Commit 1d495b9

Browse files
committed
fix: make pylint conditional to maintain Python 3.9 compatibility
- Add conditional pylint installation in [project.optional-dependencies] - Python 3.10+: pylint >=4.0.0 - Python 3.9: pylint >=2.0, <4.0 - Remove hardcoded pylint from [tool.poetry.dev-dependencies] - Maintains backwards compatibility with Python 3.9 while allowing Python 3.10+ users to use pylint v4 Fixes Python 3.9 CI/CD compatibility issue with pylint v4 upgrade. This PR builds on top of PR #133 (pylint v4 upgrade) and adds Python 3.9 compatibility.
1 parent 21d24f5 commit 1d495b9

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

pyproject.toml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,21 @@ fastapi = [
4646
flask = [
4747
"flask >=3.0.0, <4.0.0",
4848
]
49+
dev = [
50+
"pytest >=7.4.0",
51+
"pytest-cov >=4.1.0",
52+
"pytest-django >=4.5.2",
53+
"mypy >=1.5.0",
54+
"bandit >=1.7",
55+
"pylint >=4.0.0; python_version >= '3.10'",
56+
"pylint >=2.0, <4.0; python_version < '3.10'",
57+
"pycodestyle >=2.0",
58+
"pytest-asyncio >=0.26.0",
59+
"pytest-timeout >=2.2.0",
60+
"black >=24.3.0",
61+
"flake8 >=6.1.0",
62+
"isort >=5.12.0",
63+
]
4964

5065
[project.urls]
5166
"Homepage" = "https://github.com/kinde-oss/kinde-python-sdk"
@@ -71,7 +86,10 @@ pytest-cov = "^4.1.0"
7186
pytest-django = "^4.5.2"
7287
mypy = "^1.5.0"
7388
bandit = "^1.7"
74-
pylint = "^4.0.0"
89+
# pylint is now conditionally installed based on Python version
90+
# Python 3.10+: pylint >=4.0.0
91+
# Python 3.9: pylint >=2.0, <4.0
92+
# Install via: pip install -e ".[dev]"
7593
pycodestyle = "^2.0"
7694
pytest-asyncio = "^0.26.0"
7795
pytest-timeout = "^2.2.0"

0 commit comments

Comments
 (0)