Skip to content

general-hooks/generic: drop main code#607

Open
bdrung wants to merge 1 commit into
canonical:mainfrom
bdrung:drop-main-from-generic
Open

general-hooks/generic: drop main code#607
bdrung wants to merge 1 commit into
canonical:mainfrom
bdrung:drop-main-from-generic

Conversation

@bdrung

@bdrung bdrung commented Apr 28, 2026

Copy link
Copy Markdown
Member

mypy will complain if ProblemReport will get type hints:

data/general-hooks/generic.py:126: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes  [str-bytes-safe]

This code in the generic general hook is only there for testing. Drop this code and test add_info directly.

@bdrung bdrung force-pushed the drop-main-from-generic branch from af473dc to e631b1f Compare April 28, 2026 15:27
@codecov

codecov Bot commented Apr 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.47%. Comparing base (d9d3c9f) to head (debe7c4).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #607      +/-   ##
==========================================
- Coverage   84.47%   84.47%   -0.01%     
==========================================
  Files         106      106              
  Lines       21053    21051       -2     
  Branches     3223     3221       -2     
==========================================
- Hits        17784    17782       -2     
- Misses       2792     2793       +1     
+ Partials      477      476       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

mypy will complain if `ProblemReport` will get type hints:

```
data/general-hooks/generic.py:126: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes  [str-bytes-safe]
```

This code in the generic general hook is only there for testing. Drop
this code and test `add_info` directly.
@bdrung bdrung force-pushed the drop-main-from-generic branch from e631b1f to debe7c4 Compare July 2, 2026 21:46
@bdrung bdrung requested a review from Hyask July 4, 2026 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant