diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 118cdc97..8b87a275 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,10 +10,10 @@ jobs: main-windows: uses: asottile/workflows/.github/workflows/tox.yml@v1.8.1 with: - env: '["py39"]' + env: '["py310"]' os: windows-latest main-linux: uses: asottile/workflows/.github/workflows/tox.yml@v1.8.1 with: - env: '["py39", "py310", "py311", "py312"]' + env: '["py310", "py311", "py312", "py313"]' os: ubuntu-latest diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 984e7aaa..f9cd7e1d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: rev: v3.15.0 hooks: - id: reorder-python-imports - args: [--py39-plus, --add-import, 'from __future__ import annotations'] + args: [--py310-plus, --add-import, 'from __future__ import annotations'] - repo: https://github.com/asottile/add-trailing-comma rev: v3.2.0 hooks: @@ -26,7 +26,7 @@ repos: rev: v3.21.0 hooks: - id: pyupgrade - args: [--py39-plus] + args: [--py310-plus] - repo: https://github.com/hhatto/autopep8 rev: v2.3.2 hooks: diff --git a/pyupgrade/_data.py b/pyupgrade/_data.py index 164d30b2..a841c7e5 100644 --- a/pyupgrade/_data.py +++ b/pyupgrade/_data.py @@ -3,8 +3,8 @@ import ast import collections import pkgutil +from collections.abc import Callable from collections.abc import Iterable -from typing import Callable from typing import NamedTuple from typing import Protocol from typing import TypeVar diff --git a/setup.cfg b/setup.cfg index 87986c9d..ad8a8a55 100644 --- a/setup.cfg +++ b/setup.cfg @@ -19,7 +19,7 @@ classifiers = packages = find: install_requires = tokenize-rt>=6.1.0 -python_requires = >=3.9 +python_requires = >=3.10 [options.packages.find] exclude =