mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Constraints pt3 (#37803)
This commit is contained in:
parent
eb6fda8387
commit
34c2579507
4
.vscode/tasks.json
vendored
4
.vscode/tasks.json
vendored
@ -76,7 +76,7 @@
|
||||
{
|
||||
"label": "Install all Requirements",
|
||||
"type": "shell",
|
||||
"command": "pip3 install -r requirements_all.txt -c homeassistant/package_constraints.txt",
|
||||
"command": "pip3 install -r requirements_all.txt",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
@ -90,7 +90,7 @@
|
||||
{
|
||||
"label": "Install all Test Requirements",
|
||||
"type": "shell",
|
||||
"command": "pip3 install -r requirements_test_all.txt -c homeassistant/package_constraints.txt",
|
||||
"command": "pip3 install -r requirements_test_all.txt",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
|
@ -10,7 +10,7 @@ WORKDIR /usr/src
|
||||
COPY . homeassistant/
|
||||
RUN \
|
||||
pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
|
||||
-r homeassistant/requirements_all.txt -c homeassistant/homeassistant/package_constraints.txt \
|
||||
-r homeassistant/requirements_all.txt \
|
||||
&& pip3 uninstall -y typing \
|
||||
&& pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
|
||||
-e ./homeassistant \
|
||||
|
5
tox.ini
5
tox.ini
@ -9,7 +9,6 @@ commands =
|
||||
{toxinidir}/script/check_dirty
|
||||
deps =
|
||||
-r{toxinidir}/requirements_test_all.txt
|
||||
-c{toxinidir}/homeassistant/package_constraints.txt
|
||||
|
||||
[testenv:cov]
|
||||
commands =
|
||||
@ -17,21 +16,18 @@ commands =
|
||||
{toxinidir}/script/check_dirty
|
||||
deps =
|
||||
-r{toxinidir}/requirements_test_all.txt
|
||||
-c{toxinidir}/homeassistant/package_constraints.txt
|
||||
|
||||
[testenv:pylint]
|
||||
ignore_errors = True
|
||||
deps =
|
||||
-r{toxinidir}/requirements_all.txt
|
||||
-r{toxinidir}/requirements_test.txt
|
||||
-c{toxinidir}/homeassistant/package_constraints.txt
|
||||
commands =
|
||||
pylint {env:PYLINT_ARGS:} {posargs} homeassistant
|
||||
|
||||
[testenv:lint]
|
||||
deps =
|
||||
-r{toxinidir}/requirements_test.txt
|
||||
-c{toxinidir}/homeassistant/package_constraints.txt
|
||||
commands =
|
||||
python -m script.gen_requirements_all validate
|
||||
python -m script.hassfest --action validate
|
||||
@ -42,6 +38,5 @@ commands =
|
||||
[testenv:typing]
|
||||
deps =
|
||||
-r{toxinidir}/requirements_test.txt
|
||||
-c{toxinidir}/homeassistant/package_constraints.txt
|
||||
commands =
|
||||
pre-commit run mypy {posargs: --all-files}
|
||||
|
Loading…
x
Reference in New Issue
Block a user