-
Notifications
You must be signed in to change notification settings - Fork 28
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
base: main
Are you sure you want to change the base?
Add pylint to pre-commit #90
Conversation
This PR introduces some structure to setup.py by encapsulating some parts of the logic into functions and creating the main function.
* Introduce github actions for CI * fixup! Introduce github actions for CI
This commit refactors the code base to create an installable kibble application. Co-authored-by: Michał Słowikowski <[email protected]>
Add Black to pre-commit and format whole codebase
* Use KibbleConfigParser in setup script * fixup! Use KibbleConfigParser in setup script
@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]> |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fixed now.
.pre-commit-config.yaml
Outdated
hooks: | ||
- id: pylint | ||
args: | ||
- --max-line-length=11080 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
03d94fc
to
0ccea20
Compare
@turbaszek |
3b8e148
to
858346c
Compare
There was missing coma, I committed it. Looks better now |
This PR adds Github Action job to run tests on CI & fix a failing test
Co-authored-by: Kaxil Naik <[email protected]>
The paths were incorrect, I think they are from before when they were in a separate repo
This PR replaces cameleCase with snake_case, removes some unused variables and adds some that in some cases may result in run time error.
62289b5
to
75c3a92
Compare
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
75c3a92
to
ca400a1
Compare
ca400a1
to
8111d1d
Compare
8111d1d
to
2a65d75
Compare
2abfcc8
to
113819c
Compare
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