Skip to content

Conversation

behnazh-w
Copy link
Member

Summary

Add flake8-print plugin to enforce detection of print statements in code, and update the pre-commit hooks.

Description of changes

This PR introduces the flake8-print plugin to the codebase via the pre-commit configuration. This plugin flags any usage of the print function, which is generally discouraged in production code in favor of proper logging.

Changes:

  • Added flake8-print to the list of pre-commit hooks.
  • Updated pre-commit configuration to include the plugin.
  • Added per-file-ignores for test scripts where print statements are used legitimately (e.g., for test output).

@behnazh-w behnazh-w requested a review from tromai as a code owner July 23, 2025 01:03
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 23, 2025
@behnazh-w behnazh-w added this to the Release version 0.17.0 milestone Jul 23, 2025
@behnazh-w behnazh-w requested review from benmss and removed request for tromai July 23, 2025 01:04
Copy link
Member

@benmss benmss left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@behnazh-w behnazh-w merged commit aac6232 into main Jul 23, 2025
9 checks passed
@behnazh-w behnazh-w deleted the behnazh/add-flake8-print branch July 23, 2025 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants