Skip to content

Commit bf47acd

Browse files
authored
Merge pull request #21 from jkittner/drop-38
drop python 3.8
2 parents 9ea4949 + fd6a299 commit bf47acd

File tree

5 files changed

+19
-25
lines changed

5 files changed

+19
-25
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: [3.8, 3.9, '3.10', '3.11']
13+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v5
1616
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v4
17+
uses: actions/setup-python@v6
1818
with:
1919
python-version: ${{ matrix.python-version }}
2020
- name: install dependencies

.pre-commit-config.yaml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ci:
22
autoupdate_schedule: monthly
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.4.0
5+
rev: v6.0.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
@@ -15,35 +15,33 @@ repos:
1515
- id: requirements-txt-fixer
1616
- id: double-quote-string-fixer
1717
- repo: https://github.com/pycqa/flake8
18-
rev: 6.0.0
18+
rev: 7.3.0
1919
hooks:
2020
- id: flake8
2121
additional_dependencies: [flake8-typing-imports==1.14.0]
22-
args: [--min-python-version=3.8]
23-
- repo: https://github.com/pre-commit/mirrors-autopep8
24-
rev: v2.0.2
22+
args: [--min-python-version=3.9]
23+
- repo: https://github.com/hhatto/autopep8
24+
rev: v2.3.2
2525
hooks:
2626
- id: autopep8
2727
- repo: https://github.com/asottile/reorder-python-imports
28-
rev: v3.10.0
28+
rev: v3.15.0
2929
hooks:
3030
- id: reorder-python-imports
31-
args: [--py3-plus]
3231
- repo: https://github.com/asottile/add-trailing-comma
33-
rev: v3.0.0
32+
rev: v3.2.0
3433
hooks:
3534
- id: add-trailing-comma
36-
args: [--py36-plus]
3735
- repo: https://github.com/asottile/pyupgrade
38-
rev: v3.8.0
36+
rev: v3.20.0
3937
hooks:
4038
- id: pyupgrade
41-
args: [--py38-plus]
39+
args: [--py39-plus]
4240
- repo: https://github.com/asottile/setup-cfg-fmt
43-
rev: v2.4.0
41+
rev: v2.8.0
4442
hooks:
4543
- id: setup-cfg-fmt
4644
- repo: https://github.com/pre-commit/mirrors-mypy
47-
rev: v1.4.1
45+
rev: v1.18.2
4846
hooks:
4947
- id: mypy

flake8_timeout.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import ast
22
import importlib.metadata as importlib_metadata
3+
from collections.abc import Generator
34
from typing import Any
4-
from typing import Generator
5-
from typing import List
6-
from typing import Tuple
7-
from typing import Type
85

96
MSG = 'TIM100 request call has no timeout'
107

@@ -16,7 +13,7 @@
1613

1714
class Visitor(ast.NodeVisitor):
1815
def __init__(self) -> None:
19-
self.assignments: List[Tuple[int, int]] = []
16+
self.assignments: list[tuple[int, int]] = []
2017

2118
def visit_Call(self, node: ast.Call) -> None:
2219
if (
@@ -67,7 +64,7 @@ class Plugin:
6764
def __init__(self, tree: ast.AST):
6865
self._tree = tree
6966

70-
def run(self) -> Generator[Tuple[int, int, str, Type[Any]], None, None]:
67+
def run(self) -> Generator[tuple[int, int, str, type[Any]], None, None]:
7168
visitor = Visitor()
7269
visitor.visit(self._tree)
7370
for line, col in visitor.assignments:

setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ author_email = jkittner@users.noreply.github.com
1010
license = MIT
1111
license_files = LICENCE
1212
classifiers =
13-
License :: OSI Approved :: MIT License
1413
Programming Language :: Python :: 3
1514
Programming Language :: Python :: 3 :: Only
1615
Programming Language :: Python :: Implementation :: CPython
@@ -19,7 +18,7 @@ classifiers =
1918
py_modules = flake8_timeout
2019
install_requires =
2120
flake8
22-
python_requires = >=3.8
21+
python_requires = >=3.9
2322

2423
[options.packages.find]
2524
exclude =

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py38, py39, py310, py311, pre-commit
2+
envlist = py39, py310, py311, py312, py313, pre-commit
33
skip_missing_interpreters = true
44

55
[testenv]

0 commit comments

Comments
 (0)