Skip to content

Commit b7ab17e

Browse files
[pre-commit.ci] pre-commit autoupdate (#3087)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent f2062bc commit b7ab17e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
77
- repo: https://github.com/python-jsonschema/check-jsonschema
8-
rev: 0.36.2
8+
rev: 0.37.0
99
hooks:
1010
- id: check-github-workflows
1111
args: ["--verbose"]
@@ -15,15 +15,15 @@ repos:
1515
- id: codespell
1616
args: ["--write-changes"]
1717
- repo: https://github.com/tox-dev/tox-toml-fmt
18-
rev: "v1.7.2"
18+
rev: "v1.8.0"
1919
hooks:
2020
- id: tox-toml-fmt
2121
- repo: https://github.com/tox-dev/pyproject-fmt
2222
rev: "v2.16.2"
2323
hooks:
2424
- id: pyproject-fmt
2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: "v0.15.2"
26+
rev: "v0.15.4"
2727
hooks:
2828
- id: ruff-format
2929
- id: ruff

tasks/__main__zipapp.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ def find_distributions(self, context: Any) -> Iterator[Any]: # noqa: ANN401
7373
return
7474
name = context.name.replace("_", "-")
7575
if name in self.distributions:
76-
result = dist_class(file_loader=self.get_data, dist_path=self.distributions[name])
77-
yield result
76+
yield dist_class(file_loader=self.get_data, dist_path=self.distributions[name])
7877

7978
def __repr__(self) -> str:
8079
return f"{self.__class__.__name__}(path={ABS_HERE})"

0 commit comments

Comments
 (0)