Skip to content

Commit

Permalink
Merge pull request #2040 from PyCQA/bugfix/issue-2007
Browse files Browse the repository at this point in the history
Fix settings for py3.11
  • Loading branch information
staticdev authored Dec 15, 2022
2 parents f5c8723 + 066e359 commit 8a10e47
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 229 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
python-version: ["3.11"]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion isort/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def __post_init__(self) -> None:
if sys.version_info.major == 2 and sys.version_info.minor <= 6:
py_version = "2"
elif sys.version_info.major == 3 and (
sys.version_info.minor <= 6 or sys.version_info.minor >= 11
sys.version_info.minor <= 5 or sys.version_info.minor >= 12
):
py_version = "3"
else:
Expand Down
2 changes: 1 addition & 1 deletion isort/stdlibs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from . import all as _all
from . import py2, py3, py27, py35, py36, py37, py38, py39, py310
from . import py2, py3, py27, py36, py37, py38, py39, py310, py311
4 changes: 2 additions & 2 deletions isort/stdlibs/py3.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from . import py35, py36, py37, py38, py39, py310
from . import py36, py37, py38, py39, py310, py311

stdlib = py35.stdlib | py36.stdlib | py37.stdlib | py38.stdlib | py39.stdlib | py310.stdlib
stdlib = py36.stdlib | py37.stdlib | py38.stdlib | py39.stdlib | py310.stdlib | py311.stdlib
223 changes: 0 additions & 223 deletions isort/stdlibs/py35.py

This file was deleted.

5 changes: 4 additions & 1 deletion tests/unit/test_importable.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ def test_importable():
import isort.stdlibs.py2
import isort.stdlibs.py3
import isort.stdlibs.py27
import isort.stdlibs.py35
import isort.stdlibs.py36
import isort.stdlibs.py37
import isort.stdlibs.py38
import isort.stdlibs.py39
import isort.stdlibs.py310
import isort.stdlibs.py311
import isort.utils
import isort.wrap
import isort.wrap_modes
Expand Down

0 comments on commit 8a10e47

Please sign in to comment.