-
Notifications
You must be signed in to change notification settings - Fork 3
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
Adopt the custom_injectors callback #13
Adopt the custom_injectors callback #13
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
6995214
to
3922ce7
Compare
@webknjaz Unsure what to do about the doc failure. |
src/awx_plugins/interfaces/_temporary_private_credential_api.py
Outdated
Show resolved
Hide resolved
@chrismeyersfsu one solution could be using this hack to produce artificial references to links somewhere in the source code: https://github.com/ansible/awx-plugins/pull/24/files#diff-85933aa74a2d66c3e4dcdf7a9ad8397f5a7971080d34ef1108296a7c6b69e7e3R209-R251. |
@chrismeyersfsu I'm trying something out. Hold on. We might be able to revert your commit with the ignore with what I'm trying to do. |
src/awx_plugins/interfaces/_temporary_private_credential_api.py
Outdated
Show resolved
Hide resolved
src/awx_plugins/interfaces/_temporary_private_credential_api.py
Outdated
Show resolved
Hide resolved
src/awx_plugins/interfaces/_temporary_private_credential_api.py
Outdated
Show resolved
Hide resolved
11dbd7a
to
41a4361
Compare
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.
@chrismeyersfsu everything works now. The branch could use a little cleanup, though.
86e3b6b
to
5b4a72f
Compare
@webknjaz my cleaning up of the branch broke things or the fix didn't work. |
7f75fdd
to
769791f
Compare
@@ -4,6 +4,13 @@ | |||
The hope is that it will be refactored into something more standardized. | |||
""" | |||
|
|||
from collections.abc import Callable | |||
|
|||
from awx_plugins.interfaces._temporary_private_credential_api import ( # noqa: WPS436, pylint: disable=C0301 |
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.
Urgh.. I missed this. Don't use cryptic numbers in pylint ignores. It's got proper human-readable names for rules...
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.
Ahhhh... I see. That's line-too-long
.
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.
Anyway, the root cause can be fixed because the linting violation actually reveals a different problem — an absolute import. This should be using relative imports instead. And then, there wouldn't be a problem to suppress in the first place. We shouldn't hide such problems, but work to understand why they happen.
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.
If something needs to be ignored, there should be a code comment explaining why. Especially for uncommon flake8 rule codes. In case of pylint, they should be human-readable, which is often enough (but not always).
@@ -0,0 +1,52 @@ | |||
# pylint: disable=fixme |
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.
Also, global pylint ignores like this should be used as the last resort. They should be scoped to a single line or fixed instead.
Co-Authored-By: Sviatoslav Sydorenko <[email protected]>
769791f
to
ea13414
Compare
ea13414
to
bc0e0de
Compare
@chrismeyersfsu post-merge instructions:
|
No description provided.