Skip to content

Commit 68a850e

Browse files
[pre-commit.ci] pre-commit autoupdate (#83)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.0.278 → v0.0.280](astral-sh/ruff-pre-commit@v0.0.278...v0.0.280) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 2ba9526 commit 68a850e

2 files changed

Lines changed: 9 additions & 16 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
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/astral-sh/ruff-pre-commit
8-
rev: "v0.0.278"
8+
rev: "v0.0.280"
99
hooks:
1010
- id: ruff
1111
args: [--fix, --exit-non-zero-on-fix]

tests/demo_pkg_inline/build.py

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
record = f"{dist_info}/RECORD"
1919
content = {
2020
logic: f"def do():\n print('greetings from {name}')",
21-
metadata: """
21+
metadata: f"""
2222
Metadata-Version: 2.1
23-
Name: {}
24-
Version: {}
23+
Name: {pkg_name}
24+
Version: {version}
2525
Summary: UNKNOWN
2626
Home-page: UNKNOWN
2727
Author: UNKNOWN
@@ -30,20 +30,13 @@
3030
Platform: UNKNOWN
3131
3232
UNKNOWN
33-
""".format(
34-
pkg_name,
35-
version,
36-
),
37-
wheel: """
33+
""",
34+
wheel: f"""
3835
Wheel-Version: 1.0
39-
Generator: {}-{}
36+
Generator: {name}-{version}
4037
Root-Is-Purelib: true
41-
Tag: py{}-none-any
42-
""".format(
43-
name,
44-
version,
45-
sys.version_info[0],
46-
),
38+
Tag: py{sys.version_info[0]}-none-any
39+
""",
4740
f"{dist_info}/top_level.txt": name,
4841
record: """
4942
{0}/__init__.py,,

0 commit comments

Comments
 (0)