Skip to content

Commit 7da0bbf

Browse files
committed
chore: update pre-commit hooks
1 parent 3eb9613 commit 7da0bbf

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ repos:
3939
- "--option"
4040
- "indent_string= "
4141
- repo: https://github.com/google/yamlfmt
42-
rev: v0.20.0
42+
rev: v0.21.0
4343
hooks:
4444
- id: yamlfmt
4545
name: "format yml"
@@ -65,7 +65,7 @@ repos:
6565
additional_dependencies:
6666
- mdformat-gfm
6767
- repo: https://github.com/astral-sh/ruff-pre-commit
68-
rev: v0.14.8
68+
rev: v0.14.10
6969
hooks:
7070
- id: ruff
7171
name: "lint py"

build-aux/color-generator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ def update_theme_file(colors: list[MpvqcColorSet], dark: bool) -> None:
163163
if theme == item["identifier"]:
164164
file[idx]["palettes"] = [asdict(c) for c in colors]
165165

166-
with Path(path).open("w", encoding="utf-8") as f:
167-
f.write(json.dumps(file, indent=4))
166+
Path(path).write_text(json.dumps(file, indent=4), encoding="utf-8")
168167

169168

170169
if __name__ == "__main__":

0 commit comments

Comments
 (0)