diff --git a/pre_commit_hooks/check_added_large_files.py b/pre_commit_hooks/check_added_large_files.py index 50cd0cd..eb6a97c 100644 --- a/pre_commit_hooks/check_added_large_files.py +++ b/pre_commit_hooks/check_added_large_files.py @@ -4,7 +4,8 @@ import argparse import math import os import subprocess -from collections.abc import Iterable, Sequence +from collections.abc import Iterable +from collections.abc import Sequence from pre_commit_hooks.util import added_files from pre_commit_hooks.util import zsplit diff --git a/pre_commit_hooks/check_case_conflict.py b/pre_commit_hooks/check_case_conflict.py index a26ac19..e6aed8a 100644 --- a/pre_commit_hooks/check_case_conflict.py +++ b/pre_commit_hooks/check_case_conflict.py @@ -3,7 +3,7 @@ from __future__ import annotations import argparse from collections.abc import Iterable from collections.abc import Iterator -from collections.abc import Iterable, Sequence +from collections.abc import Sequence from pre_commit_hooks.util import added_files from pre_commit_hooks.util import cmd_output diff --git a/pre_commit_hooks/check_executables_have_shebangs.py b/pre_commit_hooks/check_executables_have_shebangs.py index 3d09837..7cab193 100644 --- a/pre_commit_hooks/check_executables_have_shebangs.py +++ b/pre_commit_hooks/check_executables_have_shebangs.py @@ -5,7 +5,8 @@ import argparse import shlex import sys from collections.abc import Generator -from collections.abc import Iterable, Sequence +from collections.abc import Iterable +from collections.abc import Sequence from typing import NamedTuple from pre_commit_hooks.util import cmd_output diff --git a/pre_commit_hooks/check_shebang_scripts_are_executable.py b/pre_commit_hooks/check_shebang_scripts_are_executable.py index ad9f566..95573a3 100644 --- a/pre_commit_hooks/check_shebang_scripts_are_executable.py +++ b/pre_commit_hooks/check_shebang_scripts_are_executable.py @@ -4,7 +4,8 @@ from __future__ import annotations import argparse import shlex import sys -from collections.abc import Iterable, Sequence +from collections.abc import Iterable +from collections.abc import Sequence from pre_commit_hooks.check_executables_have_shebangs import EXECUTABLE_VALUES from pre_commit_hooks.check_executables_have_shebangs import git_ls_files diff --git a/pre_commit_hooks/destroyed_symlinks.py b/pre_commit_hooks/destroyed_symlinks.py index b382459..0e96507 100644 --- a/pre_commit_hooks/destroyed_symlinks.py +++ b/pre_commit_hooks/destroyed_symlinks.py @@ -3,7 +3,8 @@ from __future__ import annotations import argparse import shlex import subprocess -from collections.abc import Iterable, Sequence +from collections.abc import Iterable +from collections.abc import Sequence from pre_commit_hooks.util import cmd_output from pre_commit_hooks.util import zsplit diff --git a/pre_commit_hooks/detect_aws_credentials.py b/pre_commit_hooks/detect_aws_credentials.py index 2bd0e94..e33652b 100644 --- a/pre_commit_hooks/detect_aws_credentials.py +++ b/pre_commit_hooks/detect_aws_credentials.py @@ -3,7 +3,8 @@ from __future__ import annotations import argparse import configparser import os -from collections.abc import Iterable, Sequence +from collections.abc import Iterable +from collections.abc import Sequence from typing import NamedTuple diff --git a/pre_commit_hooks/file_contents_sorter.py b/pre_commit_hooks/file_contents_sorter.py index c8101d2..49089f7 100644 --- a/pre_commit_hooks/file_contents_sorter.py +++ b/pre_commit_hooks/file_contents_sorter.py @@ -14,7 +14,6 @@ from __future__ import annotations import argparse from collections.abc import Callable from collections.abc import Iterable -from collections.abc import Iterable from typing import Any from typing import IO diff --git a/pre_commit_hooks/pretty_format_json.py b/pre_commit_hooks/pretty_format_json.py index 53d092e..84318e1 100644 --- a/pre_commit_hooks/pretty_format_json.py +++ b/pre_commit_hooks/pretty_format_json.py @@ -3,8 +3,9 @@ from __future__ import annotations import argparse import json import sys +from collections.abc import Iterable from collections.abc import Mapping -from collections.abc import Iterable, Sequence +from collections.abc import Sequence from difflib import unified_diff