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

Fix/Disable Pylint R0917 #432

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

inknos
Copy link
Contributor

@inknos inknos commented Sep 24, 2024

Two ways of fixing this:

  • Ignore R0917 for internal functions such as int
  • Fix the positional arguments with *

Testing against Pylint stable.
Source of Pylint 3.3.1 docs
https://pylint.readthedocs.io/en/stable/user_guide/messages/refactor/too-many-positional-arguments.html

Two ways of fixing this:
- Ignore R0917 for internal functions such as __int__
- Fix the positional arguments with *

Only exception is for run(image, command=None) for which it is
convenient to run with two positional args.
Example:
    run('fedora:latest', 'ls -la /')

Testing against Pylint stable.
Source of Pylint 3.3.1 docs
https://pylint.readthedocs.io/en/stable/user_guide/messages/refactor/too-many-positional-arguments.html

Signed-off-by: Nicola Sella <[email protected]>
@inknos
Copy link
Contributor Author

inknos commented Sep 24, 2024

@rhatdan if you want to take a look here are the fixes for the tests.

cc: @jwhonce

@rhatdan
Copy link
Member

rhatdan commented Sep 24, 2024

LGTM

@rhatdan
Copy link
Member

rhatdan commented Sep 24, 2024

/approve
/lgtm

Copy link
Contributor

openshift-ci bot commented Sep 24, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: inknos, rhatdan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 1767eea into containers:main Sep 24, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants