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 pylint to pre-commit #90

Draft
wants to merge 56 commits into
base: main
Choose a base branch
from

Conversation

michalslowikowski00
Copy link
Contributor

Hey folks.
This PR will add Pylint to Kibble pre-commit hooks.
If you don't know what Pylint is here you can read about it

@michalslowikowski00 michalslowikowski00 self-assigned this Nov 10, 2020
@michalslowikowski00 michalslowikowski00 marked this pull request as draft November 10, 2020 20:52
@turbaszek
Copy link
Member

@michalslowikowski00 please rebase, I merged #78 and it introduced a lot of additional code to scan :<

mail:
mailhost: localhost
mailport: 25
sender: Kibble <[email protected]>
Copy link
Member

Choose a reason for hiding this comment

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

We don't need this file. I think if you rebase onto latest main branch then this file should be ignored:
https://github.com/apache/kibble/blob/0a11b51dfa01521a10887556124035107ad1fd80/.gitignore#L2-L3

If not then we should adjust gitignore

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should be fixed now.

hooks:
- id: pylint
args:
- --max-line-length=11080
Copy link
Member

Choose a reason for hiding this comment

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

Let's use pylintrc file for configuration instead of using args in pre-commit. In this way we will be able to supress some warning temporarily and adjust the tool to our needs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea, I am figuring out how RC file works.

pylintrc Outdated Show resolved Hide resolved
@michalslowikowski00
Copy link
Contributor Author

@turbaszek
Have you any idea how to resolve all those conflicts?
https://github.com/apache/kibble/pull/90/checks?check_run_id=1400755394

pylintrc Outdated Show resolved Hide resolved
@turbaszek
Copy link
Member

@turbaszek
Have you any idea how to resolve all those conflicts?
https://github.com/apache/kibble/pull/90/checks?check_run_id=1400755394

There was missing coma, I committed it. Looks better now

This PR replaces cameleCase with snake_case, removes some unused
variables and adds some that in some cases may result in run time error.
@github-actions github-actions bot removed the area:scanners Scanners related issues label Dec 13, 2020
turbaszek and others added 10 commits December 13, 2020 16:56
This PR moved watson, azure, picoapi and git configuration to
kibble.ini config file. It fixes also reading ES configuration.
In this way all Kibble configuration is in single place.
pylint wip

wip, pylint
pylint wip

wip, pylint
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

6 participants