Skip to content

Commit

Permalink
Merge pull request #143 from gforcada/test-python-3-12-support
Browse files Browse the repository at this point in the history
Test against python 3.12
  • Loading branch information
gforcada authored Sep 15, 2023
2 parents 8738869 + 85d68d6 commit 7eda85c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.10", 3.9, 3.8, pypy-3.9]
python-version: ["3.12.0-beta.2", "3.11", "3.10", 3.9, 3.8, pypy-3.9]
isort: [5.11.2]
flake8: [5.0.4]
include:
Expand Down
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ Changelog
- Drop python 3.7 support.
[gforcada]

- Add preliminary support to Python 3.12.
[gforcada]

6.0.0 (2022-12-22)
------------------

Expand Down
6 changes: 3 additions & 3 deletions flake8_isort.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import warnings
from contextlib import redirect_stdout
from difflib import unified_diff
from importlib.metadata import PackageNotFoundError, version
from io import StringIO
from pathlib import Path

import isort
from pkg_resources import DistributionNotFound, get_distribution


def _version():
try:
return get_distribution('flake8_isort').version
except DistributionNotFound:
return version('flake8_isort')
except PackageNotFoundError:
return 'dev' # for local development if package is not installed yet


Expand Down

0 comments on commit 7eda85c

Please sign in to comment.