mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Uninstall pre-installed tools from devcontainer (#79765)
This commit is contained in:
parent
bba7b3b2be
commit
53c51c9221
@ -17,8 +17,14 @@
|
|||||||
// Please keep this file in sync with settings in home-assistant/.vscode/settings.default.json
|
// Please keep this file in sync with settings in home-assistant/.vscode/settings.default.json
|
||||||
"settings": {
|
"settings": {
|
||||||
"python.pythonPath": "/usr/local/bin/python",
|
"python.pythonPath": "/usr/local/bin/python",
|
||||||
"python.linting.pylintEnabled": true,
|
|
||||||
"python.linting.enabled": true,
|
"python.linting.enabled": true,
|
||||||
|
"python.linting.pylintEnabled": true,
|
||||||
|
"python.formatting.blackPath": "/usr/local/bin/black",
|
||||||
|
"python.linting.flake8Path": "/usr/local/bin/flake8",
|
||||||
|
"python.linting.pycodestylePath": "/usr/local/bin/pycodestyle",
|
||||||
|
"python.linting.pydocstylePath": "/usr/local/bin/pydocstyle",
|
||||||
|
"python.linting.mypyPath": "/usr/local/bin/mypy",
|
||||||
|
"python.linting.pylintPath": "/usr/local/bin/pylint",
|
||||||
"python.formatting.provider": "black",
|
"python.formatting.provider": "black",
|
||||||
"python.testing.pytestArgs": ["--no-cov"],
|
"python.testing.pytestArgs": ["--no-cov"],
|
||||||
"editor.formatOnPaste": false,
|
"editor.formatOnPaste": false,
|
||||||
|
@ -2,6 +2,15 @@ FROM mcr.microsoft.com/vscode/devcontainers/python:0-3.9
|
|||||||
|
|
||||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||||
|
|
||||||
|
# Uninstall pre-installed formatting and linting tools
|
||||||
|
# They would conflict with our pinned versions
|
||||||
|
RUN pipx uninstall black
|
||||||
|
RUN pipx uninstall flake8
|
||||||
|
RUN pipx uninstall pydocstyle
|
||||||
|
RUN pipx uninstall pycodestyle
|
||||||
|
RUN pipx uninstall mypy
|
||||||
|
RUN pipx uninstall pylint
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
|
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user