Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f415f6c

Browse files
committed
1 parent 99fa9ba commit f415f6c

10 files changed

Lines changed: 13 additions & 14 deletions

File tree

.github/workflows/languages.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fetch-depth: 0
2222
- uses: actions/setup-python@v4
2323
with:
24-
python-version: 3.9
24+
python-version: '3.10'
2525
- name: install deps
2626
run: python -mpip install -e . -r requirements-dev.txt
2727
- name: vars
@@ -39,7 +39,7 @@ jobs:
3939
- uses: asottile/workflows/.github/actions/[email protected]
4040
- uses: actions/setup-python@v4
4141
with:
42-
python-version: 3.9
42+
python-version: '3.10'
4343

4444
- run: echo "$CONDA\Scripts" >> "$GITHUB_PATH"
4545
shell: bash

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
main-windows:
1515
uses: asottile/workflows/.github/workflows/[email protected]
1616
with:
17-
env: '["py39"]'
17+
env: '["py310"]'
1818
os: windows-latest
1919
main-linux:
2020
uses: asottile/workflows/.github/workflows/[email protected]
2121
with:
22-
env: '["py39", "py310", "py311", "py312"]'
22+
env: '["py310", "py311", "py312", "py313"]'
2323
os: ubuntu-latest

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repos:
1818
hooks:
1919
- id: reorder-python-imports
2020
exclude: ^(pre_commit/resources/|testing/resources/python3_hooks_repo/)
21-
args: [--py39-plus, --add-import, 'from __future__ import annotations']
21+
args: [--py310-plus, --add-import, 'from __future__ import annotations']
2222
- repo: https://github.com/asottile/add-trailing-comma
2323
rev: v3.2.0
2424
hooks:
@@ -27,7 +27,7 @@ repos:
2727
rev: v3.20.0
2828
hooks:
2929
- id: pyupgrade
30-
args: [--py39-plus]
30+
args: [--py310-plus]
3131
- repo: https://github.com/hhatto/autopep8
3232
rev: v2.3.2
3333
hooks:

pre_commit/commands/migrate_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import functools
44
import itertools
55
import textwrap
6-
from typing import Callable
6+
from collections.abc import Callable
77

88
import cfgv
99
import yaml

pre_commit/file_lock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import contextlib
44
import errno
55
import sys
6+
from collections.abc import Callable
67
from collections.abc import Generator
7-
from typing import Callable
88

99

1010
if sys.platform == 'win32': # pragma: no cover (windows)

pre_commit/languages/golang.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ def _infer_go_version(version: str) -> str:
9090
if version != C.DEFAULT:
9191
return version
9292
resp = urllib.request.urlopen('https://go.dev/dl/?mode=json')
93-
# TODO: 3.9+ .removeprefix('go')
94-
return json.load(resp)[0]['version'][2:]
93+
return json.load(resp)[0]['version'].removeprefix('go')
9594

9695

9796
def _get_url(version: str) -> str:

pre_commit/store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import os.path
66
import sqlite3
77
import tempfile
8+
from collections.abc import Callable
89
from collections.abc import Generator
910
from collections.abc import Sequence
10-
from typing import Callable
1111

1212
import pre_commit.constants as C
1313
from pre_commit import clientlib

pre_commit/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
import stat
99
import subprocess
1010
import sys
11+
from collections.abc import Callable
1112
from collections.abc import Generator
1213
from types import TracebackType
1314
from typing import Any
14-
from typing import Callable
1515

1616
from pre_commit import parse_shebang
1717

pre_commit/xargs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
import os
88
import subprocess
99
import sys
10+
from collections.abc import Callable
1011
from collections.abc import Generator
1112
from collections.abc import Iterable
1213
from collections.abc import MutableMapping
1314
from collections.abc import Sequence
1415
from typing import Any
15-
from typing import Callable
1616
from typing import TypeVar
1717

1818
from pre_commit import parse_shebang

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ install_requires =
2323
nodeenv>=0.11.1
2424
pyyaml>=5.1
2525
virtualenv>=20.10.0
26-
python_requires = >=3.9
26+
python_requires = >=3.10
2727

2828
[options.packages.find]
2929
exclude =

0 commit comments

Comments
 (0)