Skip to content

Commit e3ac919

Browse files
authored
Merge pull request #341 from asottile/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 3ff84cc + e501c85 commit e3ac919

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repos:
2323
hooks:
2424
- id: add-trailing-comma
2525
- repo: https://github.com/asottile/pyupgrade
26-
rev: v3.16.0
26+
rev: v3.17.0
2727
hooks:
2828
- id: pyupgrade
2929
args: [--py38-plus]

all_repos/autofix/pre_commit_autoupdate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
@contextlib.contextmanager
18-
def tmp_pre_commit_home() -> Generator[None, None, None]:
18+
def tmp_pre_commit_home() -> Generator[None]:
1919
"""During lots of autoupdates, many repositories will be cloned into the
2020
pre-commit directory. This prevents leaving many MB/GB of repositories
2121
behind due to this autofixer. This context creates a temporary directory

all_repos/autofix_lib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def target_branch() -> str:
152152

153153

154154
@contextlib.contextmanager
155-
def repo_context(repo: str, *, use_color: bool) -> Generator[None, None, None]:
155+
def repo_context(repo: str, *, use_color: bool) -> Generator[None]:
156156
print(color.fmt(f'***{repo}', color.TURQUOISE_H, use_color=use_color))
157157
try:
158158
remote = git.remote(repo)

all_repos/clone.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
def _get_current_state_helper(
1919
path: str,
20-
) -> Generator[tuple[str, str], None, None]:
20+
) -> Generator[tuple[str, str]]:
2121
if not os.path.exists(path):
2222
return
2323

all_repos/mapper.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ def exhaust(gen: Iterable[T]) -> None:
1919

2020
@contextlib.contextmanager
2121
def _in_process() -> Generator[
22-
Callable[[Callable[[T2], T], Iterable[T2]], Iterable[T]], None, None,
22+
Callable[[Callable[[T2], T], Iterable[T2]], Iterable[T]],
2323
]:
2424
yield map
2525

2626

2727
@contextlib.contextmanager
2828
def _threads(jobs: int) -> Generator[
29-
Callable[[Callable[[T2], T], Iterable[T2]], Iterable[T]], None, None,
29+
Callable[[Callable[[T2], T], Iterable[T2]], Iterable[T]],
3030
]:
3131
with concurrent.futures.ThreadPoolExecutor(jobs) as ex:
3232
yield ex.map
@@ -43,7 +43,7 @@ def thread_mapper(jobs: int) -> ContextManager[
4343

4444
@contextlib.contextmanager
4545
def _processes(jobs: int) -> Generator[
46-
Callable[[Callable[[T2], T], Iterable[T2]], Iterable[T]], None, None,
46+
Callable[[Callable[[T2], T], Iterable[T2]], Iterable[T]],
4747
]:
4848
with concurrent.futures.ProcessPoolExecutor(jobs) as ex:
4949
yield ex.map

all_repos/sed.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def find_repos(
1919
config: Config,
2020
*,
2121
ls_files_cmd: Sequence[str],
22-
) -> Generator[str, None, None]:
22+
) -> Generator[str]:
2323
for repo in config.get_cloned_repos():
2424
repo_dir = os.path.join(config.output_dir, repo)
2525
if subprocess.run(

0 commit comments

Comments
 (0)