Skip to content

Add pylint to pre-commit #90

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

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.

@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

@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.
@turbaszek turbaszek force-pushed the add-pylint-to-precommit branch from 62289b5 to 75c3a92 Compare December 13, 2020 14:25
@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
@turbaszek turbaszek force-pushed the add-pylint-to-precommit branch from 75c3a92 to ca400a1 Compare December 13, 2020 17:12
@github-actions github-actions bot added area:api area:cli CLI related issues labels Dec 13, 2020
@turbaszek turbaszek force-pushed the add-pylint-to-precommit branch from ca400a1 to 8111d1d Compare December 13, 2020 17:16
@turbaszek turbaszek force-pushed the add-pylint-to-precommit branch from 8111d1d to 2a65d75 Compare December 13, 2020 17:19
@turbaszek turbaszek force-pushed the main branch 2 times, most recently from 2abfcc8 to 113819c Compare January 16, 2021 11: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.

6 participants