Skip to content

MAINT: Use placeholder-based approach for logger_error (py-pdf#3384)#3673

Open
alanmehio wants to merge 7 commits intopy-pdf:mainfrom
alanmehio:issue-3384-PR-1
Open

MAINT: Use placeholder-based approach for logger_error (py-pdf#3384)#3673
alanmehio wants to merge 7 commits intopy-pdf:mainfrom
alanmehio:issue-3384-PR-1

Conversation

@alanmehio
Copy link

@alanmehio alanmehio commented Mar 8, 2026

This is the first PR out of two. This address partially the issue #3384 for logger_error only. The second PR will address the same issue but for logger_warning
This fixes #3384

@alanmehio
Copy link
Author

The synch forked repo is always failing
see

Is there a special configuration ?

Copy link
Collaborator

@stefan6419846 stefan6419846 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. I have added some comments.

As for the tests: I propose to move the values to actual PdfObjects as this is what we pass in most of the cases.

Regarding the tests failing on forks: This is due to downloading large amounts of PDF files and rate limits from GitHub. There unfortunately is not much we can do about this.

@codecov
Copy link

codecov bot commented Mar 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.41%. Comparing base (5a9a0da) to head (5efda9f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3673   +/-   ##
=======================================
  Coverage   97.41%   97.41%           
=======================================
  Files          55       55           
  Lines        9989     9989           
  Branches     1833     1833           
=======================================
  Hits         9731     9731           
  Misses        150      150           
  Partials      108      108           

☔ View full report in Codecov by Sentry.
📢 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.

@alanmehio alanmehio requested a review from stefan6419846 March 11, 2026 07:57
alanmehio and others added 3 commits March 11, 2026 20:45
 it reinforcd the separation between postional argument (first paramter or message) and the keyword argument(source)
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.

Use placeholder-based approach for logger_error and logger_warning

2 participants