Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ repos:
- "--option"
- "indent_string= "
- repo: https://github.com/google/yamlfmt
rev: v0.20.0
rev: v0.21.0
hooks:
- id: yamlfmt
name: "format yml"
Expand All @@ -65,7 +65,7 @@ repos:
additional_dependencies:
- mdformat-gfm
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.8
rev: v0.14.10
hooks:
- id: ruff
name: "lint py"
Expand Down
3 changes: 1 addition & 2 deletions build-aux/color-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@ def update_theme_file(colors: list[MpvqcColorSet], dark: bool) -> None:
if theme == item["identifier"]:
file[idx]["palettes"] = [asdict(c) for c in colors]

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


if __name__ == "__main__":
Expand Down