-
Notifications
You must be signed in to change notification settings - Fork 23
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 CI #290
Add pylint to CI #290
Conversation
See #289 |
@@ -39,3 +40,7 @@ jobs: | |||
- name: Lint with flake8 |
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.
Just a question: is the idea that pylint
will replace flake8
, maybe when its errors have been dealt with? Or do we normally have both on a project?
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 will run both.
.pylintrc
Outdated
@@ -0,0 +1,63 @@ | |||
[MESSAGES CONTROL] |
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.
Instead of having a dot file to control pylint
, it might be preferable to put its options in setup.cfg
(and, eventually, pyproject.toml
if/when we move to PEP621-style packaging).
The disable
list would go into a [pylint.messages control]
section of setup.cfg
.
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.
Thanks, that made it prettier. Used setup.cfg
.
4de83b7
to
d4715c0
Compare
@@ -27,6 +27,7 @@ jobs: | |||
|
|||
- name: Install dependencies | |||
run: | | |||
pip install . |
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.
@xjules , it seems your comment here has been lost. This line is added in order to let pylint
check that everything is importable, so this is used only to get the dependencies in, not to get komodo itself in.
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.
🚀 🍴
Currently every current pylint issue is exempted. Excemptions (disables) in .pylintrc are to be removed one-by-one in upcoming PRs.
Currently every current pylint issue is exempted.
Excemptions (disables) in .pylintrc are to be removed one-by-one in upcoming PRs.