Skip to content

Commit

Permalink
[ENH] Config tweaks, move .venv outside mount.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBretticus committed Feb 15, 2024
1 parent d65fadb commit 89469e4
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"ryanluker.vscode-coverage-gutters",
"ms-python.vscode-pylance",
"ms-python.pylint",
"ms-python.debugpy",
"charliermarsh.ruff",
"editorconfig.editorconfig",
"github.vscode-github-actions"
Expand All @@ -40,5 +41,8 @@
"remoteUser": "vscode",
"features": {
"ghcr.io/devcontainers/features/rust:1": {}
},
"containerEnv": {
"PYTHONDONTWRITEBYTECODE": "1"
}
}
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# artifacts
__pycache__
.pytest*
.ruff_cache
*.egg-info
*/build/*
*/dist/*
Expand All @@ -9,10 +10,10 @@ __pycache__
# misc
.coverage
.vscode
.venv
.venv*
coverage.xml


# Home Assistant configuration
config/*
!config/configuration.yaml
!config/configuration.yaml
9 changes: 4 additions & 5 deletions .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,17 @@ ignore = [
"D411", # Missing blank line before section
"E501", # line too long
"E731", # do not assign a lambda expression, use a def
]

# TODO: disabled until ready
[lint.per-file-ignores]
"**/tests/*" = [
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D107", # Missing docstring in `__init__`
]

[lint.per-file-ignores]
"__init__.py" = ["D104"]
#"**/tests/*" = ["D100"]

[flake8-pytest-style]
fixture-parentheses = false

Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ pytest-homeassistant-custom-component = "^0.13.91"
testpaths = "tests"
python_files = ["test_*.py", "when_*.py"]
python_functions = ["test_*", "it_*"]
#addopts = "-p anyio -p aiohttp -p asyncio -p pytest_cov -p freezer -p picked -p socket -p test-groups -p unordered -p syrupy"
asyncio_mode = "auto"

[build-system]
Expand Down
4 changes: 3 additions & 1 deletion scripts/setup
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ pipx install poetry

poetry self add poetry-plugin-export
poetry config warnings.export false
poetry config virtualenvs.in-project true
#poetry config virtualenvs.in-project true
poetry completions bash >> ~/.bash_completion
poetry install

echo alias py=python >> ~/.bash_aliases
3 changes: 0 additions & 3 deletions tests/.pylintrc

This file was deleted.

0 comments on commit 89469e4

Please sign in to comment.