diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index fc6f4a53724..02d5c072efa 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -74,6 +74,7 @@ rules: - **Formatting**: Ruff - **Linting**: PyLint and Ruff - **Type Checking**: MyPy +- **Lint/Type/Format Fixes**: Always prefer addressing the underlying issue (e.g., import the typed source, update shared stubs, align with Ruff expectations, or correct formatting at the source) before disabling a rule, adding `# type: ignore`, or skipping a formatter. Treat suppressions and `noqa` comments as a last resort once no compliant fix exists - **Testing**: pytest with plain functions and fixtures - **Language**: American English for all code, comments, and documentation (use sentence case, including titles)