Repository navigation
Conversation
https://github.com/pre-commit/pygrep-hooks Official hooks from pre-commit some more basic checks or tests we can run
|
@blueorangutan package |
|
@jbampton a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #12933 +/- ##
=========================================
Coverage 20.77% 20.78%
- Complexity 20855 20856 +1
=========================================
Files 6053 6053
Lines 548230 548230
Branches 73237 73237
=========================================
+ Hits 113903 113923 +20
+ Misses 420988 420959 -29
- Partials 13339 13348 +9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17311 |
There was a problem hiding this comment.
Pull request overview
Adds additional upstream pygrep-hooks checks to the repository’s pre-commit configuration to catch a few common Python/text pitfalls earlier in CI and local developer workflows.
Changes:
- Add
python-check-mock-methodsto detect common invalidunittest.mockmethod usages. - Add
python-use-type-annotationsto discourage PEP 484 type comments in favor of annotations (with a targeted exclude). - Add
text-unicode-replacement-charto forbid UTF-8 replacement characters in committed files.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
🟢 Approval recommended
The changes are limited to CI/pre-commit configuration, with only minor wording/spelling fixes suggested for clarity.
Review details
Suppressed comments (1)
.pre-commit-config.yaml:200
- The hook name uses the abbreviation "char" while the description spells out "character"; keeping these consistent avoids confusion.
name: run check for no unicode replacement char
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
borisstoyanov
left a comment
There was a problem hiding this comment.
LGTM, @jbampton could you please check the comments above

https://github.com/pre-commit/pygrep-hooks
Official hooks from pre-commit some more basic checks or tests we can run
Description
This PR...
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?