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

Various pylint improvements #3615

Closed
wants to merge 3 commits into from

Conversation

tiran
Copy link
Member

@tiran tiran commented Sep 3, 2019

Enable literal-comparison linter again

The literal comparison linter checks for "value is 0" or "value is ''".
Related: https://pagure.io/freeipa/issue/8057

Fix wrong use of identity operation

Strings should not be compared with the identity operation 'is' or 'is not'.

Add new env vars to pylint plugin

The vars api.env.host_princ and smb_princ where introduced a while ago.
Sometimes parallel linting complain about the attributes. Add both to
the list of known members in pylint_plugins.py.
Related: https://pagure.io/freeipa/issue/3999

@tiran tiran added needs review Pull Request is waiting for a review ipa-4-8 Mark for backport to ipa 4.8 re-run Trigger a new run of PR-CI labels Sep 3, 2019
@freeipa-pr-ci freeipa-pr-ci removed the re-run Trigger a new run of PR-CI label Sep 3, 2019
@tiran
Copy link
Member Author

tiran commented Sep 3, 2019

vagrant up is failing on small-runner-18.

@tiran tiran added CI-infra issue Test failed because of CI infrastructure issue re-run Trigger a new run of PR-CI labels Sep 3, 2019
@freeipa-pr-ci freeipa-pr-ci removed the re-run Trigger a new run of PR-CI label Sep 3, 2019
@flo-renaud flo-renaud added ack Pull Request approved, can be merged and removed needs review Pull Request is waiting for a review labels Sep 3, 2019
@flo-renaud
Copy link
Contributor

Hi @tiran,
thanks for the PR, LGTM.

@flo-renaud flo-renaud self-assigned this Sep 3, 2019
The literal comparison linter checks for "value is 0" or "value is ''".

Related: https://pagure.io/freeipa/issue/8057
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Strings should not be compared with the identity operation 'is' or
'is not'.

Fixes: https://pagure.io/freeipa/issue/8057
Signed-off-by: Christian Heimes <cheimes@redhat.com>
The vars api.env.host_princ and smb_princ where introduced a while ago.
Sometimes parallel linting complain about the attributes. Add both to
the list of known members in pylint_plugins.py.

Related: https://pagure.io/freeipa/issue/3999
Signed-off-by: Christian Heimes <cheimes@redhat.com>
@tiran tiran force-pushed the issue8057-literal-comparison branch from 3f45452 to f724039 Compare September 4, 2019 06:30
@flo-renaud flo-renaud added the pushed Pull Request has already been pushed label Sep 4, 2019
@flo-renaud
Copy link
Contributor

master:

  • 8d2125f Enable literal-comparison linter again
  • 0fc4b8c Fix wrong use of identity operation
  • 0d7eb0a Add new env vars to pylint plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged CI-infra issue Test failed because of CI infrastructure issue ipa-4-8 Mark for backport to ipa 4.8 pushed Pull Request has already been pushed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants