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

Useful pylint fixes #1715

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

bstaletic
Copy link
Collaborator

@bstaletic bstaletic commented Oct 7, 2023

After combing through all the stuff pylint has found, this seems to me the useful part.

The only questionable thing here, I think, could be the stuff related to open() and explicit encoding argument. This changes behaviour! Without specifying, the encoding is platform dependent. See https://docs.python.org/3/library/functions.html#open for details.

Fixes #1672

The dead code in python completer (see #1672) is removed in this pull request.


This change is Reviewable

@codecov
Copy link

codecov bot commented Oct 7, 2023

Codecov Report

Attention: Patch coverage is 61.53846% with 5 lines in your changes missing coverage. Please review.

Project coverage is 95.95%. Comparing base (8b61f19) to head (3e56747).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1715      +/-   ##
==========================================
+ Coverage   95.52%   95.95%   +0.43%     
==========================================
  Files          52       84      +32     
  Lines        6975     8462    +1487     
  Branches        0      163     +163     
==========================================
+ Hits         6663     8120    +1457     
+ Misses        312      292      -20     
- Partials        0       50      +50     

Copy link
Member

@puremourning puremourning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

nice !

Reviewable status: 1 of 2 LGTMs obtained

Copy link
Member

@puremourning puremourning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 29 of 29 files at r1, all commit messages.
Reviewable status: 1 of 2 LGTMs obtained (waiting on @bstaletic)

Copy link
Collaborator Author

@bstaletic bstaletic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased. I'll take a look at the changes once again tomorrow.

Reviewable status: 0 of 2 LGTMs obtained (and 1 stale) (waiting on @puremourning)

After combing through all the stuff pylint has found, this seems to me
the useful part.

The only questionable thing here, I think, could be the stuff related to
`open()` and explicit encoding argument. This changes behaviour!
Without specifying, the encoding is platform dependent. See
https://docs.python.org/3/library/functions.html#open for details.

Fixes ycm-core#1672
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unreachable code in python_completer.py
2 participants