diff --git a/.devcontainer.json b/.devcontainer.json index 9c15cbc..d02c14f 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -2,7 +2,9 @@ "name": "dev-weatherlink", "image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.11-bullseye", "postCreateCommand": "scripts/setup", - "appPort": ["9126:8123"], + "appPort": [ + "9126:8123" + ], "portsAttributes": { "8123": { "label": "Home Assistant internal", @@ -22,7 +24,6 @@ "ms-python.vscode-pylance", "ms-python.pylint", "charliermarsh.ruff", - "thibault-vanderseypen.i18n-json-editor" ], "settings": { "files.eol": "\n", @@ -39,9 +40,7 @@ "files.trimTrailingWhitespace": true, "[markdown]": { "files.trimTrailingWhitespace": false - }, - "i18nJsonEditor.forceKeyUPPERCASE": false, - "i18nJsonEditor.supportedFolders": ["translations", "i18n"] + } } } }, diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1835e15..a172665 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,17 +1,12 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.278 + rev: v0.1.8 hooks: - id: ruff args: - --fix - - repo: https://github.com/psf/black - rev: 23.1.0 - hooks: - - id: black - args: - - --quiet - files: ^((custom_components|homeassistant|pylint|script|tests)/.+)?[^/]+\.py$ + - id: ruff-format + files: ^((homeassistant|custom_components|pylint|script|tests)/.+)?[^/]+\.py$ - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: