diff --git a/.dockerignore b/.dockerignore index cf975f4215f..e2f89e2f797 100644 --- a/.dockerignore +++ b/.dockerignore @@ -14,7 +14,8 @@ tests # Other virtualization methods venv +.venv .vagrant # Temporary files -**/__pycache__ \ No newline at end of file +**/__pycache__ diff --git a/script/run-in-env.sh b/script/run-in-env.sh index 1c7f76ccc1f..b64d311d8fe 100755 --- a/script/run-in-env.sh +++ b/script/run-in-env.sh @@ -19,7 +19,7 @@ else # other common virtualenvs my_path=$(git rev-parse --show-toplevel) - for venv in venv .venv .; do + for venv in .venv venv .; do if [ -f "${my_path}/${venv}/bin/activate" ]; then . "${my_path}/${venv}/bin/activate" break diff --git a/script/setup b/script/setup index 84ee074510a..a9b89e4ea69 100755 --- a/script/setup +++ b/script/setup @@ -18,11 +18,11 @@ mkdir -p config if [ ! -n "$VIRTUAL_ENV" ]; then if [ -x "$(command -v uv)" ]; then - uv venv venv + uv venv .venv else - python3 -m venv venv + python3 -m venv .venv fi - source venv/bin/activate + source .venv/bin/activate fi if ! [ -x "$(command -v uv)" ]; then @@ -37,7 +37,7 @@ python3 -m script.translations develop --all hass --script ensure_config -c config -if ! grep -R "logger" config/configuration.yaml >> /dev/null;then +if ! grep -R "logger" config/configuration.yaml >> /dev/null; then echo " logger: default: info