Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

test(pylint): enable pylint "unused-argument" check#2100

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nejch merged 1 commit intomainfromjlvillal/pylint_2022-06-26
Jun 27, 2022

Conversation

@JohnVillalovos
Copy link
Member

Enable the pylint "unused-argument" check and resolve issues it found.

  • Quite a few functions were accepting**kwargs but not then
    passing them on through to the next level. Now pass**kwargs to
    next level.
  • Other functions had no reason to accept**kwargs, so remove it
  • And a few other fixes.

@codecov-commenter
Copy link

codecov-commenter commentedJun 26, 2022
edited
Loading

Codecov Report

Merging#2100 (23feae9) intomain (b644721) willnot change coverage.
The diff coverage is66.66%.

@@           Coverage Diff           @@##             main    #2100   +/-   ##=======================================  Coverage   94.73%   94.73%           =======================================  Files          78       78             Lines        5087     5087           =======================================  Hits         4819     4819             Misses        268      268
FlagCoverage Δ
cli_func_v482.42% <33.33%> (ø)
py_func_v481.14% <13.33%> (ø)
unit85.80% <60.00%> (ø)

Flags with carried forward coverage won't be shown.Click here to find out more.

Impacted FilesCoverage Δ
gitlab/client.py98.68% <ø> (ø)
gitlab/v4/objects/groups.py88.73% <0.00%> (ø)
gitlab/v4/objects/jobs.py77.27% <33.33%> (ø)
gitlab/v4/cli.py90.61% <100.00%> (ø)
gitlab/v4/objects/merge_request_approvals.py90.80% <100.00%> (ø)
gitlab/v4/objects/pipelines.py94.44% <100.00%> (ø)
gitlab/v4/objects/projects.py90.00% <100.00%> (ø)
gitlab/v4/objects/services.py100.00% <100.00%> (ø)

Copy link
Member

@nejchnejch left a comment

Choose a reason for hiding this comment

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

Thanks@JohnVillalovos, just a few tiny comments mainly for always passing onkwargs as we claim in our docs that we support it forsudo (and maybe in a few cases would also be useful for pagination args).

Enable the pylint "unused-argument" check and resolve issues it found.  * Quite a few functions were accepting `**kwargs` but not then    passing them on through to the next level. Now pass `**kwargs` to    next level.  * Other functions had no reason to accept `**kwargs`, so remove it  * And a few other fixes.
@nejchnejch merged commit3c3f865 intomainJun 27, 2022
@nejchnejch deleted the jlvillal/pylint_2022-06-26 branchJune 27, 2022 10:26
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nejchnejchnejch approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@JohnVillalovos@codecov-commenter@nejch

[8]ページ先頭

©2009-2025 Movatter.jp