mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +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",
|
"label": "Install all Requirements",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "pip3 install -r requirements_all.txt -c homeassistant/package_constraints.txt",
|
"command": "pip3 install -r requirements_all.txt",
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "build",
|
"kind": "build",
|
||||||
"isDefault": true
|
"isDefault": true
|
||||||
@ -90,7 +90,7 @@
|
|||||||
{
|
{
|
||||||
"label": "Install all Test Requirements",
|
"label": "Install all Test Requirements",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "pip3 install -r requirements_test_all.txt -c homeassistant/package_constraints.txt",
|
"command": "pip3 install -r requirements_test_all.txt",
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "build",
|
"kind": "build",
|
||||||
"isDefault": true
|
"isDefault": true
|
||||||
|
@ -10,7 +10,7 @@ WORKDIR /usr/src
|
|||||||
COPY . homeassistant/
|
COPY . homeassistant/
|
||||||
RUN \
|
RUN \
|
||||||
pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
|
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 uninstall -y typing \
|
||||||
&& pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
|
&& pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
|
||||||
-e ./homeassistant \
|
-e ./homeassistant \
|
||||||
|
5
tox.ini
5
tox.ini
@ -9,7 +9,6 @@ commands =
|
|||||||
{toxinidir}/script/check_dirty
|
{toxinidir}/script/check_dirty
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements_test_all.txt
|
-r{toxinidir}/requirements_test_all.txt
|
||||||
-c{toxinidir}/homeassistant/package_constraints.txt
|
|
||||||
|
|
||||||
[testenv:cov]
|
[testenv:cov]
|
||||||
commands =
|
commands =
|
||||||
@ -17,21 +16,18 @@ commands =
|
|||||||
{toxinidir}/script/check_dirty
|
{toxinidir}/script/check_dirty
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements_test_all.txt
|
-r{toxinidir}/requirements_test_all.txt
|
||||||
-c{toxinidir}/homeassistant/package_constraints.txt
|
|
||||||
|
|
||||||
[testenv:pylint]
|
[testenv:pylint]
|
||||||
ignore_errors = True
|
ignore_errors = True
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements_all.txt
|
-r{toxinidir}/requirements_all.txt
|
||||||
-r{toxinidir}/requirements_test.txt
|
-r{toxinidir}/requirements_test.txt
|
||||||
-c{toxinidir}/homeassistant/package_constraints.txt
|
|
||||||
commands =
|
commands =
|
||||||
pylint {env:PYLINT_ARGS:} {posargs} homeassistant
|
pylint {env:PYLINT_ARGS:} {posargs} homeassistant
|
||||||
|
|
||||||
[testenv:lint]
|
[testenv:lint]
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements_test.txt
|
-r{toxinidir}/requirements_test.txt
|
||||||
-c{toxinidir}/homeassistant/package_constraints.txt
|
|
||||||
commands =
|
commands =
|
||||||
python -m script.gen_requirements_all validate
|
python -m script.gen_requirements_all validate
|
||||||
python -m script.hassfest --action validate
|
python -m script.hassfest --action validate
|
||||||
@ -42,6 +38,5 @@ commands =
|
|||||||
[testenv:typing]
|
[testenv:typing]
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements_test.txt
|
-r{toxinidir}/requirements_test.txt
|
||||||
-c{toxinidir}/homeassistant/package_constraints.txt
|
|
||||||
commands =
|
commands =
|
||||||
pre-commit run mypy {posargs: --all-files}
|
pre-commit run mypy {posargs: --all-files}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user