Skip to content

Commit

Permalink
run pre-commit for all
Browse files Browse the repository at this point in the history
  • Loading branch information
denysdovhan committed Jul 31, 2024
1 parent dc54b6e commit 00571ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ repos:
rev: v0.4.10
hooks:
- id: ruff
args: [ --fix ]
args: [--fix]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v3.1.0'
rev: "v3.1.0"
hooks:
- id: prettier
- id: prettier
6 changes: 4 additions & 2 deletions scripts/bump_version
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,23 @@

import json
import sys
from pathlib import Path

MANIFEST = "custom_components/lun_misto_air/manifest.json"


def main(version: str) -> None:
"""Update the version in the manifest file."""
# Read the manifest file
with open(MANIFEST) as file:

with Path(MANIFEST).open() as file:
data = json.load(file)

# Update the version
data["version"] = version.replace("v", "")

# Write the manifest file
with open(MANIFEST, "w") as file:
with Path(MANIFEST).open("w") as file:
json.dump(data, file, indent=2)


Expand Down

0 comments on commit 00571ad

Please sign in to comment.