From 7873c457d533087bd4a077710c988d480e6fb3fe Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 10 Jul 2025 11:05:59 +0200 Subject: [PATCH] Small improvement to Copilot instructions (#6011) --- .github/copilot-instructions.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 008464660..34941c4ce 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -251,8 +251,8 @@ async def backup_full(self, request: web.Request) -> dict[str, Any]: ### Development Commands ```bash -# Run tests with coverage -pytest tests/ --cov=supervisor --cov-report=term-missing +# Run tests, adjust paths as necessary +pytest -qsx tests/ # Linting and formatting ruff check supervisor/ @@ -275,6 +275,7 @@ Always run the pre-commit hooks at the end of code editing. - Use `self.sys_run_in_executor()` for blocking operations - Access Docker via `self.sys_docker` not direct Docker API - Use constants from `const.py` instead of hardcoding +- Store types in (per-module) `const.py` (e.g. supervisor/store/const.py) **❌ Avoid These Patterns**: - Direct Docker API usage - use Supervisor's Docker manager