Skip to content

Run pylint as separate GH action - #193

Merged
crobinso merged 1 commit into
python-bugzilla:mainfrom
crazyscientist:185-pylint-integration
Feb 8, 2024
Merged

crobinso merged 1 commit into
python-bugzilla:mainfrom
crazyscientist:185-pylint-integration

Conversation

@crazyscientist

Copy link
Copy Markdown
Contributor

... and allow lines to be 100 characters long.

This closes #185

@crazyscientist

Copy link
Copy Markdown
Contributor Author

@crobinso

I noticed, that there is also flake8 used in the other actions, but its "silenced". Can/Should I remove it?

Comment thread bugzilla/base.py Outdated
val = convert(val)
ret[key] = val

def add_dict(key, add, remove, _set=None, convert=None):

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

If I'm not mistaken, all uses of convert inside of the method were removed by #190. Now pylint complained about the argument not being used.

I checked with grep and this method never receives 5 arguments.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

yes that looks correct. you could send this bit as a separate PR while we figure out fate of pylint CI

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure, makes sense 👍 . See #195.

@crazyscientist

Copy link
Copy Markdown
Contributor Author

All tests passed ✔️

$ pytest --rw-functional --ro-functional
=== 146 passed in 371.12s (0:06:11) ====

@codecov

codecov Bot commented Feb 8, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0955d2e) 100.00% compared to head (1309914) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #193   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           12        12           
  Lines         2192      2192           
=========================================
  Hits          2192      2192           

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

* Allow lines to be 100 characters long.
* Pinned pylint version
@crobinso
crobinso merged commit 473da01 into python-bugzilla:main Feb 8, 2024
@crazyscientist
crazyscientist deleted the 185-pylint-integration branch October 16, 2024 14:17
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.

Pylint integration

2 participants