Skip to content

Commit 1b7446a

Browse files
authored
Merge pull request #396 from asottile/all-repos_autofix_all-repos-manual
py39+
2 parents fd0b4e1 + aa7479f commit 1b7446a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ on:
88

99
jobs:
1010
main:
11-
uses: asottile/workflows/.github/workflows/tox.yml@v1.5.0
11+
uses: asottile/workflows/.github/workflows/tox.yml@v1.7.0
1212
with:
13-
env: '["py38", "py39"]'
13+
env: '["py39", "py310"]'

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
rev: v3.14.0
1818
hooks:
1919
- id: reorder-python-imports
20-
args: [--py38-plus, --add-import, 'from __future__ import annotations']
20+
args: [--py39-plus, --add-import, 'from __future__ import annotations']
2121
- repo: https://github.com/asottile/add-trailing-comma
2222
rev: v3.1.0
2323
hooks:
@@ -26,7 +26,7 @@ repos:
2626
rev: v3.17.0
2727
hooks:
2828
- id: pyupgrade
29-
args: [--py38-plus]
29+
args: [--py39-plus]
3030
- repo: https://github.com/hhatto/autopep8
3131
rev: v2.3.1
3232
hooks:

reorder_python_imports.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
import os
1010
import re
1111
import sys
12-
from typing import Generator
12+
from collections.abc import Generator
13+
from collections.abc import Sequence
1314
from typing import NamedTuple
14-
from typing import Sequence
1515

1616
from classify_imports import Import
1717
from classify_imports import import_obj_from_str

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ classifiers =
2020
py_modules = reorder_python_imports
2121
install_requires =
2222
classify-imports>=4.1
23-
python_requires = >=3.8
23+
python_requires = >=3.9
2424

2525
[options.entry_points]
2626
console_scripts =

0 commit comments

Comments
 (0)