Skip to content

Conversation

@sanderegg
Copy link
Member

@sanderegg sanderegg commented Apr 11, 2025

This pull request includes significant updates to the documentation and best practices for using GitHub Copilot in the osparc-simcore repository, as well as a minor change to the environment variables documentation.

Documentation Updates:

  • Added a new file .github/copilot-instructions.md with 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:

  • Updated docs/env-vars.md to remove a redundant note about default values for environment variables.

What do these changes do?

Related issue/s

How to test

Dev-ops checklist

@sanderegg sanderegg added the t:maintenance Some planned maintenance work label Apr 11, 2025
@sanderegg sanderegg added this to the Pauwel Kwak milestone Apr 11, 2025
@sanderegg sanderegg self-assigned this Apr 11, 2025
@sanderegg sanderegg requested a review from pcrespov as a code owner April 11, 2025 09:01
@sanderegg sanderegg requested a review from Copilot April 11, 2025 09:01
@sonarqubecloud
Copy link

@sanderegg sanderegg merged commit 8c1a03b into ITISFoundation:master Apr 11, 2025
55 checks passed
@sanderegg sanderegg deleted the maintenance/add-copilot-instructions branch April 11, 2025 09:02
Copy link
Contributor

Copilot AI left a 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)
Copy link

Copilot AI Apr 11, 2025

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'.

Suggested change
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)

Copilot uses AI. Check for mistakes.

## 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
Copy link

Copilot AI Apr 11, 2025

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.'

Suggested change
- 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.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t:maintenance Some planned maintenance work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants