From e42ff9e378dcb7b62163dc5d807d70ee8565cfda Mon Sep 17 00:00:00 2001 From: William Valentin Date: Sat, 9 Aug 2025 09:03:23 -0700 Subject: [PATCH] feat: Update coding guidelines to enhance modularity and avoid deprecated patterns --- .github/instructions/copilot.instructions.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/instructions/copilot.instructions.md b/.github/instructions/copilot.instructions.md index 2ad007f..7dd07c1 100644 --- a/.github/instructions/copilot.instructions.md +++ b/.github/instructions/copilot.instructions.md @@ -36,6 +36,8 @@ applyTo: '**' - Use manager classes (e.g., DataManager, UIManager, ThemeManager) for encapsulating related functionality. - UI elements and data columns must be generated dynamically based on current medicines/pathologies. - New medicines/pathologies should not require changes to main logic—use dynamic lists and keys. +- Avoid hardcoding values; use configuration files or constants. +- Adopt a modular project structure following python best practices. ### 3. Error Handling - Use try/except for operations that may fail (file I/O, data parsing). @@ -76,6 +78,8 @@ applyTo: '**' - Code Refactoring is allowed as long as it does not change the external behavior of the code. - Ensure compatibility with the existing UI and data model. - Write clear, concise, and maintainable code with proper type hints and docstrings. +- Avoid using deprecated imports or patterns. +- Remove any warnings or deprecation notices from the codebase. ---