Skip to content

Fix some code quality and bug-risk issues #817

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

Merged
merged 3 commits into from
Jun 10, 2020

Conversation

pnijhara
Copy link
Contributor

@pnijhara pnijhara commented Jun 9, 2020

Changes:

  • Removing unnecessary generator from pyls/workspace.py
  • Removing unnecessary comprehension from pyls/plugins/jedi_completion.py
  • Replacing depreciated method readfp()
    (Reverted 3rd change and will send another patch with python 3 (only) release)

Also added a .deepsource.toml configuration file to run continuous static analysis on the repository with DeepSource.
Find other issues found here - https://deepsource.io/gh/pnijhara/python-language-server/issues/?category=recommended


Upon enabling DeepSource, quality and security analysis will be run on every PR to detect 500+ types of problems in the changes — including bug risks, anti-patterns, security vulnerabilities, etc.

DeepSource is free to use for open-source projects, and is used by teams at NASA, Uber, Slack among many others, and open-source projects like ThoughtWorks/Gauge, Masonite Framework, etc.

To enable DeepSource analysis after merging this PR, please follow these steps:

  1. Signup on DeepSource with your GitHub account and grant access to this repo.
  2. Activate analysis on this repo here.

You can also look at the docs for more details. Do let me know if I can be of any help!

@palantirtech
Copy link
Member

Thanks for your interest in palantir/python-language-server, @pnijhara! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

@pnijhara pnijhara marked this pull request as draft June 9, 2020 11:13
@pnijhara pnijhara force-pushed the pnijhara-patch-1 branch from 12b95c8 to f84fd85 Compare June 9, 2020 13:42
Copy link
Contributor

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

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

I left a small comment, otherwise looks good.

Please let us know when it's ready to be merged.

@pnijhara pnijhara requested a review from ccordoba12 June 9, 2020 15:30
@pnijhara pnijhara marked this pull request as ready for review June 9, 2020 15:30
@pnijhara
Copy link
Contributor Author

pnijhara commented Jun 9, 2020

@ccordoba12 Please review it again!

@ccordoba12
Copy link
Contributor

Tests are failing for Python 2 with one of your changes. So if you want to see this merged now, you'd need to fix that.

Otherwise, you could a wait a month or so, until we release a Python 3 version only.

@pnijhara
Copy link
Contributor Author

pnijhara commented Jun 9, 2020

Ok, then I will revert the changes which are failing tests. Will send another PR for that when you release Python 3 version (only)

@ccordoba12 ccordoba12 added this to the 0.33.2 milestone Jun 10, 2020
Copy link
Contributor

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

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

Thanks for your help @pnijhara!

@ccordoba12 ccordoba12 merged commit 2951e9f into palantir:develop Jun 10, 2020
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.

3 participants