Skip to content

Add copilot-instructions.md #3936

Open
AlexanderDokuchaev wants to merge 2 commits intoopenvinotoolkit:developfrom
AlexanderDokuchaev:ad/copilot_instruction
Open

Add copilot-instructions.md #3936
AlexanderDokuchaev wants to merge 2 commits intoopenvinotoolkit:developfrom
AlexanderDokuchaev:ad/copilot_instruction

Conversation

@AlexanderDokuchaev
Copy link
Collaborator

Changes

Added on copilot-instructions.md based on https://github.com/openvinotoolkit/nncf/blob/develop/docs/styleguide/PyGuide.md

Reason for changes

To provide more control over the Copilot review process. This file may include additional instructions to refine review criteria and prevent unnecessary or irrelevant comments.

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Feb 16, 2026
@AlexanderDokuchaev AlexanderDokuchaev marked this pull request as ready for review February 16, 2026 20:05
@AlexanderDokuchaev AlexanderDokuchaev requested a review from a team as a code owner February 16, 2026 20:05
Copilot AI review requested due to automatic review settings February 16, 2026 20:05
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.

Pull request overview

This PR adds a Copilot instructions file to provide automated code review guidance based on the NNCF Python style guide. The file consolidates key coding standards from PyGuide.md into a concise format for GitHub Copilot to reference during pull request reviews.

Changes:

  • Added .github/copilot-instructions.md with Python code style guidelines derived from the project's PyGuide.md
  • Includes language rules, style rules, naming conventions, test suite guidelines, and review focus areas

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@andrey-churkin andrey-churkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

- Avoid comment about formatting issues, focus on code logic and style
- Ensure that appropriate tests are added for the new code, and that they are well-structured, clear, and comply with the testing guidelines
- Check for proper exception handling and informative error messages
- Ensure that code is modular, reusable, and avoids unnecessary complexity
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Ensure that code is modular, reusable, and avoids unnecessary complexity
- Ensure that code is modular, reusable, and avoids unnecessary complexity
- Request documentation updates whenever a public API or observable behavior changes

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without a definition of a public API, this is too general a concept.
Public API can be interpolated as any function/method/class that does not starts from _

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree, it's hard to define, but it doesn't mean that it's not needed.
I believe it would be beneficial to record alterations in the library's behavior within the pull request that implements these changes.

what about this phrasing?

Request documentation updates whenever a change affects the library’s public API — meaning any documented, officially supported, or semantically stable behavior that users rely on.


When reviewing code or suggesting changes, adhere to the following logic-first rules:

- Look for performance issues, potential bottlenecks and memory leaks
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Look for performance issues, potential bottlenecks and memory leaks
- If a contribution appears to be machine‑generated or automated, ask the author to confirm human review before approval
- Look for performance issues, potential bottlenecks and memory leaks

😆

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since artificial intelligence is integrated into the IDE, it can be assumed that each PR includes machine-generated code.
Human review should be part of contribution guide, ai policy or PR template

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The manual review is also required by SDL.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably phrasing is not right. The idea was to create an instruction to catch/filter PR's that were generated fully by bots (without participation of humans).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants