Skip to content

Commit

Permalink
Merge pull request #106 from astrandb/UpdateDevContainer1
Browse files Browse the repository at this point in the history
Update development environment
  • Loading branch information
astrandb authored Oct 30, 2024
2 parents 1c7abeb + 138deec commit 3f95d4e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
10 changes: 8 additions & 2 deletions .devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"name": "astrandb/dev-viva",
"image": "mcr.microsoft.com/devcontainers/python:1-3.12",
"postCreateCommand": "scripts/setup",
"appPort": ["9124:8123"],
"appPort": [
"9124:8123"
],
"portsAttributes": {
"8123": {
"label": "Home Assistant internal",
Expand Down Expand Up @@ -41,7 +43,11 @@
"files.trimTrailingWhitespace": false
},
"i18nJsonEditor.forceKeyUPPERCASE": false,
"i18nJsonEditor.supportedFolders": ["translations", "i18n"]
"i18nJsonEditor.supportedFolders": [
"translations",
"i18n"
],
"terminal.integrated.defaultProfile.linux": "zsh"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.1
rev: v0.7.1
hooks:
- id: ruff
args:
- --fix
- id: ruff-format
files: ^((homeassistant|custom_components|pylint|script|tests)/.+)?[^/]+\.py$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down
1 change: 1 addition & 0 deletions scripts/develop
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ logger:
default: info
logs:
homeassistant.components.viva: debug
isal:
" >> config/configuration.yaml
fi
if ! grep -R "debugpy:" config/configuration.yaml >> /dev/null;then
Expand Down
5 changes: 4 additions & 1 deletion scripts/setup
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
set -e

cd "$(dirname "$0")/.."

sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libpcap-dev \
libturbojpeg0
python3 -m pip install --requirement requirements.txt
pre-commit install
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@pytest.fixture(autouse=True)
def auto_enable_custom_integrations(enable_custom_integrations):
"""Enable custom integrations defined in the test dir."""
yield
return


@pytest.fixture(name="bypass_get_data")
Expand Down

0 comments on commit 3f95d4e

Please sign in to comment.