Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test against python 3.12 #143

Merged
merged 3 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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