-
Notifications
You must be signed in to change notification settings - Fork 32
✨Maintenance: added first draft of copilot instructions #7513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨Maintenance: added first draft of copilot instructions #7513
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| 3. **Follow Coding Conventions**: Adhere to the coding conventions outlined in the `docs/coding-conventions.md` file. | ||
| 4. **Test-Driven Development**: Write unit tests for all new functions and features. Use `pytest` for Python and appropriate testing frameworks for Node.js. | ||
| 5. **Environment Variables**: Use environment variables as specified in `docs/env-vars.md` for configuration. Avoid hardcoding sensitive information. | ||
| 6. **Documentation**: Documentation should be minimal and code self explanatory (add the documentation only when the developer asks explicitely) |
Copilot
AI
Apr 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The word 'explicitely' appears to be misspelled; please change it to 'explicitly'.
| 6. **Documentation**: Documentation should be minimal and code self explanatory (add the documentation only when the developer asks explicitely) | |
| 6. **Documentation**: Documentation should be minimal and code self explanatory (add the documentation only when the developer asks explicitly) |
|
|
||
| ## Python-Specific Instructions | ||
| - Always use type hints and annotations to improve code clarity and compatibility with tools like `mypy`. | ||
| - An exception to that rule is in `test_*` functions return type hint must not be added |
Copilot
AI
Apr 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Consider rephrasing for clarity; for example, 'An exception is that test_* functions should not include a return type hint.'
| - An exception to that rule is in `test_*` functions return type hint must not be added | |
| - An exception to this rule is that `test_*` functions should not include return type hints. |



This pull request includes significant updates to the documentation and best practices for using GitHub Copilot in the
osparc-simcorerepository, as well as a minor change to the environment variables documentation.Documentation Updates:
.github/copilot-instructions.mdwith guidelines and best practices for using GitHub Copilot in Python and Node.js projects. This includes general guidelines, Python-specific instructions, Node.js-specific instructions, and Copilot usage tips.Environment Variables Documentation:
docs/env-vars.mdto remove a redundant note about default values for environment variables.What do these changes do?
Related issue/s
How to test
Dev-ops checklist