mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-25 17:17:54 +01:00
devcontainer updates (#3280)
This commit is contained in:
parent
442df4a54b
commit
cb600b5f40
@ -1,27 +1,20 @@
|
|||||||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.183.0/containers/python-3
|
// https://github.com/microsoft/vscode-dev-containers/tree/v0.183.0/containers/python-3
|
||||||
{
|
{
|
||||||
"name": "ESPHome - docs",
|
"name": "ESPHome - docs",
|
||||||
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.10",
|
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.11",
|
||||||
"postCreateCommand": "pip3 install -r requirements.txt -r requirements_test.txt",
|
"postCreateCommand": "pip3 install -r requirements.txt -r requirements_test.txt",
|
||||||
"forwardPorts": [8000],
|
"postAttachCommand": "make live-html",
|
||||||
"settings": {
|
"forwardPorts": [8000],
|
||||||
"python.pythonPath": "/usr/local/bin/python",
|
"features": {
|
||||||
"python.languageServer": "Pylance",
|
"ghcr.io/devcontainers/features/github-cli:1": {}
|
||||||
"python.linting.enabled": true,
|
},
|
||||||
"python.linting.pylintEnabled": true,
|
"customizations": {
|
||||||
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
|
"vscode": {
|
||||||
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
|
"settings": {
|
||||||
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
|
"python.pythonPath": "/usr/local/bin/python"
|
||||||
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
|
},
|
||||||
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
|
|
||||||
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
|
|
||||||
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
|
|
||||||
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
|
|
||||||
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint"
|
|
||||||
},
|
|
||||||
|
|
||||||
"extensions": [
|
"extensions": ["ms-python.python"]
|
||||||
"ms-python.python",
|
}
|
||||||
"ms-python.vscode-pylance"
|
}
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user