Skip to content

Commit

Permalink
Merge pull request #182 from asottile/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
asottile authored Jul 30, 2024
2 parents 86f0351 + c7ff727 commit 1a390e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
rev: v3.17.0
hooks:
- id: pyupgrade
args: [--py38-plus]
Expand Down
6 changes: 3 additions & 3 deletions dead.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def file_ctx(
filename: str,
*,
is_test: bool,
) -> Generator[None, None, None]:
) -> Generator[None]:
orig_filename, self.filename = self.filename, filename
orig_is_test, self.is_test = self.is_test, is_test
try:
Expand All @@ -75,7 +75,7 @@ def file_ctx(
self.is_test = orig_is_test

@contextlib.contextmanager
def scope(self) -> Generator[None, None, None]:
def scope(self) -> Generator[None]:
self.scopes.append(Scope())
try:
yield
Expand Down Expand Up @@ -220,7 +220,7 @@ def _filenames(
files_re: Pattern[str],
exclude_re: Pattern[str],
tests_re: Pattern[str],
) -> Generator[tuple[str, bool], None, None]:
) -> Generator[tuple[str, bool]]:
# TODO: zsplit is more correct than splitlines
out = subprocess.check_output(('git', 'ls-files')).decode()
for filename in out.splitlines():
Expand Down

0 comments on commit 1a390e5

Please sign in to comment.