Skip to content

Commit

Permalink
Merge pull request #1117 from ocefpaf/py39_compat
Browse files Browse the repository at this point in the history
Bump minimum supported Python to 3.9
  • Loading branch information
ocefpaf authored Nov 5, 2024
2 parents 1425fed + be976c6 commit 62758ca
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ repos:
rev: v0.7.2
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]

- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.5.0
Expand Down
3 changes: 2 additions & 1 deletion compliance_checker/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from collections.abc import Generator
from contextlib import contextmanager
from tempfile import NamedTemporaryFile
from typing import BinaryIO, Generator
from typing import BinaryIO

try:
from ._version import __version__
Expand Down
2 changes: 1 addition & 1 deletion compliance_checker/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

# Python 3.5+ should work, also have a fallback
try:
from typing import Pattern
from re import Pattern

re_pattern_type = Pattern
except ImportError:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ write_to_template = "__version__ = '{version}'"
tag_regex = "^(?P<prefix>v)?(?P<version>[^\\+]+)(?P<suffix>.*)?$"

[tool.ruff]
target-version = "py38"
target-version = "py39"
line-length = 200

exclude = [
Expand Down

0 comments on commit 62758ca

Please sign in to comment.