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

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
@codecov
Copy link

codecov bot commented Oct 7, 2023

Codecov Report

Merging #1715 (376fba1) into master (adce5d8) will increase coverage by 0.47%.
The diff coverage is 61.53%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1715      +/-   ##
==========================================
+ Coverage   94.93%   95.40%   +0.47%     
==========================================
  Files          51       83      +32     
  Lines        6657     8123    +1466     
  Branches        0      165     +165     
==========================================
+ Hits         6320     7750    +1430     
+ Misses        337      322      -15     
- Partials        0       51      +51     

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)

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