Skip to content

Commit 51c43c4

Browse files
authored
Merge pull request #1098 from pre-commit/all-repos_autofix_all-repos-manual
py39+
2 parents cef0300 + a49f812 commit 51c43c4

36 files changed

+47
-47
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ on:
88

99
jobs:
1010
main-windows:
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"]'
13+
env: '["py39"]'
1414
os: windows-latest
1515
main-linux:
16-
uses: asottile/workflows/.github/workflows/tox.yml@v1.5.0
16+
uses: asottile/workflows/.github/workflows/tox.yml@v1.7.0
1717
with:
18-
env: '["py38", "py39", "py310", "py311"]'
18+
env: '["py39", "py310", "py311", "py312"]'
1919
os: ubuntu-latest

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
rev: v3.13.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:

pre_commit_hooks/check_added_large_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import math
55
import os
66
import subprocess
7-
from typing import Sequence
7+
from collections.abc import Sequence
88

99
from pre_commit_hooks.util import added_files
1010
from pre_commit_hooks.util import zsplit

pre_commit_hooks/check_ast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import platform
66
import sys
77
import traceback
8-
from typing import Sequence
8+
from collections.abc import Sequence
99

1010

1111
def main(argv: Sequence[str] | None = None) -> int:

pre_commit_hooks/check_builtin_literals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import argparse
44
import ast
5+
from collections.abc import Sequence
56
from typing import NamedTuple
6-
from typing import Sequence
77

88

99
BUILTIN_TYPES = {

pre_commit_hooks/check_byte_order_marker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

33
import argparse
4-
from typing import Sequence
4+
from collections.abc import Sequence
55

66

77
def main(argv: Sequence[str] | None = None) -> int:

pre_commit_hooks/check_case_conflict.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from __future__ import annotations
22

33
import argparse
4-
from typing import Iterable
5-
from typing import Iterator
6-
from typing import Sequence
4+
from collections.abc import Iterable
5+
from collections.abc import Iterator
6+
from collections.abc import Sequence
77

88
from pre_commit_hooks.util import added_files
99
from pre_commit_hooks.util import cmd_output

pre_commit_hooks/check_docstring_first.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import argparse
44
import io
55
import tokenize
6+
from collections.abc import Sequence
67
from tokenize import tokenize as tokenize_tokenize
7-
from typing import Sequence
88

99
NON_CODE_TOKENS = frozenset((
1010
tokenize.COMMENT, tokenize.ENDMARKER, tokenize.NEWLINE, tokenize.NL,

pre_commit_hooks/check_executables_have_shebangs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import argparse
55
import shlex
66
import sys
7-
from typing import Generator
7+
from collections.abc import Generator
8+
from collections.abc import Sequence
89
from typing import NamedTuple
9-
from typing import Sequence
1010

1111
from pre_commit_hooks.util import cmd_output
1212
from pre_commit_hooks.util import zsplit

pre_commit_hooks/check_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import argparse
44
import json
5+
from collections.abc import Sequence
56
from typing import Any
6-
from typing import Sequence
77

88

99
def raise_duplicate_keys(

0 commit comments

Comments
 (0)