Skip to content

pylint - fail for unnecessary pylint-disable comments#7857

Merged
pavoljuhas merged 1 commit intoquantumlib:mainfrom
pavoljuhas:ci-fail-pylint-for-useless-suppression
Jan 27, 2026
Merged

pylint - fail for unnecessary pylint-disable comments#7857
pavoljuhas merged 1 commit intoquantumlib:mainfrom
pavoljuhas:ci-fail-pylint-for-useless-suppression

Conversation

@pavoljuhas
Copy link
Copy Markdown
Collaborator

@pavoljuhas pavoljuhas commented Jan 27, 2026

By default pylint only reports on useless-suppression instances,
but does not return an error exit code. Here we make it exit with
failure so that useless-suppression-s are caught by the CI.

Ref: https://pylint.readthedocs.io/en/stable/user_guide/messages/information/useless-suppression.html

By default pylint only reports on `useless-suppression` instances
and does not return an error exit code.  Here we make it to fail
so that useless-suppression-s are caught by the CI.

Ref: https://pylint.readthedocs.io/en/stable/user_guide/messages/information/useless-suppression.html
@pavoljuhas pavoljuhas requested review from a team and vtomole as code owners January 27, 2026 01:38
@pavoljuhas pavoljuhas requested a review from maffoo January 27, 2026 01:38
@github-actions github-actions bot added the Size: XS <10 lines changed label Jan 27, 2026
@pavoljuhas
Copy link
Copy Markdown
Collaborator Author

@pavoljuhas pavoljuhas requested a review from mhucka January 27, 2026 01:42
@pavoljuhas pavoljuhas enabled auto-merge January 27, 2026 01:43
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.57%. Comparing base (3f5c3c6) to head (db57bb3).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7857   +/-   ##
=======================================
  Coverage   99.56%   99.57%           
=======================================
  Files        1104     1104           
  Lines       99013    99013           
=======================================
+ Hits        98583    98591    +8     
+ Misses        430      422    -8     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@mhucka mhucka left a comment

Choose a reason for hiding this comment

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

LGTM

@pavoljuhas pavoljuhas added this pull request to the merge queue Jan 27, 2026
Merged via the queue into quantumlib:main with commit ef5e2f7 Jan 27, 2026
39 checks passed
@pavoljuhas pavoljuhas deleted the ci-fail-pylint-for-useless-suppression branch January 27, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Size: XS <10 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants