Small improvement to Copilot instructions (#6011)

This commit is contained in:
Stefan Agner 2025-07-10 11:05:59 +02:00 committed by GitHub
parent cbc48c381f
commit 7873c457d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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