From 927d35c5b290b97a4a71bfb3a5c9febaa0460120 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 11 Oct 2025 13:35:24 +0000 Subject: [PATCH 1/3] chore(deps): update dependency isort to v7 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f427700f..204c3821 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -77,5 +77,5 @@ pytest-asyncio = "^0.21.1" pytest-timeout = "^2.2.0" black = "^23.7.0" flake8 = "^6.1.0" -isort = "^5.12.0" +isort = "^7.0.0" From 8789403f89c1f95ea52786cef6b367ac3a3bbc59 Mon Sep 17 00:00:00 2001 From: brandtkruger Date: Wed, 26 Nov 2025 19:18:27 +0200 Subject: [PATCH 2/3] fix: make isort conditional to maintain Python 3.9 compatibility - Add conditional isort installation in [project.optional-dependencies] - Python 3.10+: isort >=7.0.0 - Python 3.9: isort >=5.12.0, <7.0 - Remove hardcoded isort from [tool.poetry.dev-dependencies] - Update requirements.txt with documentation comment - Maintains backwards compatibility with Python 3.9 while allowing Python 3.10+ users to use isort v7 Fixes Python 3.9 CI/CD compatibility issue with isort v7 upgrade. This PR builds on top of PR #126 (isort v7 upgrade) and adds Python 3.9 compatibility. --- pyproject.toml | 20 +++++++++++++++++++- requirements.txt | 4 ++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 204c3821..9e91defb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,6 +46,21 @@ fastapi = [ flask = [ "flask >=3.0.0, <4.0.0", ] +dev = [ + "pytest >=7.4.0", + "pytest-cov >=4.1.0", + "pytest-django >=4.5.2", + "mypy >=1.5.0", + "bandit >=1.7", + "pylint >=2.0", + "pycodestyle >=2.0", + "pytest-asyncio >=0.21.1", + "pytest-timeout >=2.2.0", + "black >=23.7.0", + "flake8 >=6.1.0", + "isort >=7.0.0; python_version >= '3.10'", + "isort >=5.12.0, <7.0; python_version < '3.10'", +] [project.urls] "Homepage" = "https://github.com/kinde-oss/kinde-python-sdk" @@ -77,5 +92,8 @@ pytest-asyncio = "^0.21.1" pytest-timeout = "^2.2.0" black = "^23.7.0" flake8 = "^6.1.0" -isort = "^7.0.0" +# isort is now conditionally installed based on Python version +# Python 3.10+: isort >=7.0.0 +# Python 3.9: isort >=5.12.0, <7.0 +# Install via: pip install -e ".[dev]" diff --git a/requirements.txt b/requirements.txt index 247acd96..36a1ab64 100644 --- a/requirements.txt +++ b/requirements.txt @@ -27,6 +27,10 @@ pytest-cov>=4.1.0 pytest-timeout>=2.2.0 black>=23.7.0 flake8>=6.1.0 +# Note: isort version is conditional based on Python version in pyproject.toml [project.optional-dependencies] +# Python 3.10+: isort >=7.0.0, Python 3.9: isort >=5.12.0, <7.0 +# For conditional installation, use: pip install -e ".[dev]" +# This line maintains Python 3.9 compatibility for CI/CD isort>=5.12.0 mypy>=1.5.0 PyYAML>=6.0.1 From 15bd80eb8ca4eae26bb86b6f271556b922678c8e Mon Sep 17 00:00:00 2001 From: brandtkruger Date: Sat, 17 Jan 2026 18:43:14 +0200 Subject: [PATCH 3/3] chore: update isort version specifications in requirements.txt for Python compatibility --- requirements.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index 2ca57a02..ff068db2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -27,11 +27,11 @@ pytest-cov>=4.1.0 pytest-timeout>=2.2.0 black>=23.7.0 flake8>=6.1.0 -# Note: isort version is conditional based on Python version in pyproject.toml [project.optional-dependencies] +# Note: isort version is conditional based on Python version # Python 3.10+: isort >=7.0.0, Python 3.9: isort >=5.12.0, <7.0 -# For conditional installation, use: pip install -e ".[dev]" -# This line maintains Python 3.9 compatibility for CI/CD -isort>=5.12.0 +# Conditional markers mirror pyproject.toml [project.optional-dependencies.dev] +isort>=7.0.0; python_version >= '3.10' +isort>=5.12.0,<7.0; python_version < '3.10' mypy>=1.5.0 PyYAML>=6.0.1 twine>=4.0.2