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

Add super-with-arguments & too-few-public-methods check #95

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

Ruchip16
Copy link
Member

The super-with-arguments error is a linting error that occurs when calling the super() function with arguments. In Python 3, it's recommended to use the super() function without arguments, as it will automatically infer the correct superclass and arguments.

The too-few-public-method check indicates that the class has very few public methods and may not be well-designed for reuse or extension. To fix this error, we need to refactor the class to add more public methods or convert it into a module or a function if it's not needed as a class. For now I have added the #pylint comment for it but in future we can try to refactor the code which can make it more modular. @ssbarnea @cidrblock

Related to #85

@Ruchip16 Ruchip16 added the bug label Apr 13, 2023
@Ruchip16 Ruchip16 self-assigned this Apr 13, 2023
@Ruchip16 Ruchip16 requested a review from a team as a code owner April 13, 2023 04:20
@Ruchip16 Ruchip16 requested review from ganeshrn, trishnaguha, cidrblock, ssbarnea, priyamsahoo, a team and shatakshiiii and removed request for a team April 13, 2023 04:20
@ssbarnea ssbarnea merged commit 6b536b2 into ansible:main Apr 13, 2023
@Ruchip16 Ruchip16 deleted the lint/fix branch April 13, 2023 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants