Skip to content

Commit

Permalink
Tweak devcontainer and enable stricter type checking (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
weltenwort authored Aug 7, 2021
1 parent 988e0af commit 8a0c656
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@
],
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh",
"python.venvPath": "~/.cache/pypoetry/virtualenvs",
"python.venvPath": "/home/vscode/.cache/pypoetry/virtualenvs",
"python.linting.enabled": true,
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.formatting.provider": "black",
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[python]": {
"editor.defaultFormatter": "ms-python.python"
}
},
"remoteUser": "vscode",
"postCreateCommand": "poetry install"
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ pytest-homeassistant-custom-component = "^0.2.1"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.pyright]
typeCheckingMode = "strict"
reportMissingTypeStubs = "warning"
reportImportCycles = "warning"
useLibraryCodeForTypes = true

0 comments on commit 8a0c656

Please sign in to comment.