Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Enable pylint in tests folder #1933

Merged
merged 1 commit into from
Oct 29, 2024
Merged

chore: Enable pylint in tests folder #1933

merged 1 commit into from
Oct 29, 2024

Conversation

zusorio
Copy link
Member

@zusorio zusorio commented Oct 29, 2024

Enable pylint in the tests folder. The pylint-pytest plugin is used to prevent false-positives for fixtures. There are still some false-positives for unused arguments in methods and classes that we mock, so corresponding comments to ignore these errors are added. This was also used to fix some valid issues that pylint found (like duplicate and unnecessary imports).

Closes #544

@zusorio zusorio requested a review from MoritzWeber0 as a code owner October 29, 2024 11:44
Copy link

github-actions bot commented Oct 29, 2024

API Changelog 4.10.1.dev4+ge7aa146d

Copy link

codecov bot commented Oct 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.80%. Comparing base (fc151f9) to head (30d07a9).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1933   +/-   ##
=======================================
  Coverage   84.80%   84.80%           
=======================================
  Files         211      211           
  Lines        6875     6875           
  Branches      472      472           
=======================================
  Hits         5830     5830           
  Misses        879      879           
  Partials      166      166           

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

This comment has been minimized.

This comment has been minimized.

.pre-commit-config.yaml Outdated Show resolved Hide resolved
.github/workflows/lint.yml Outdated Show resolved Hide resolved

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

Enable pylint in the tests folder. The pylint-pytest plugin is used to prevent false-positives for
fixtures. There are still some false-positives for unused arguments in methods and classes that we
mock, so corresponding comments to ignore these errors are added. This was also used to fix some
valid issues that pylint found (like duplicate and unnecessary imports).

Closes #544
Copy link

sonarcloud bot commented Oct 29, 2024

Copy link

This report was generated by comparing e7aa146 with fc151f9.
If you would like to check difference, please check here.

success

ArtifactName: reg

✨✨ That's perfect, there is no visual difference! ✨✨

item count
pass 350
change 0
new 0
delete 0

@MoritzWeber0 MoritzWeber0 merged commit 3727209 into main Oct 29, 2024
30 checks passed
@MoritzWeber0 MoritzWeber0 deleted the pylint-tests branch October 29, 2024 16:13
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.

Run pylint in tests directory
2 participants