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

Ensure Pylint<2.0.0 on Python 2.x #2178

Merged
merged 7 commits into from
Jul 18, 2018

Conversation

DonJayamanne
Copy link

@DonJayamanne DonJayamanne commented Jul 17, 2018

Fixes #2057

  • Title summarizes what is changing
  • Includes a news entry file (remember to thank yourself!)
  • Unit tests & code coverage are not adversely affected (within reason)
  • Works on all actively maintained versions of Python (e.g. Python 2.7 & the latest Python 3 release)
  • Works on Windows 10, macOS, and Linux (e.g. considered file system case-sensitivity)
  • [n/a] Dependencies are pinned (e.g. "1.2.3", not "^1.2.3")
  • [n/a] package-lock.json has been regenerated if dependencies have changed

@codecov
Copy link

codecov bot commented Jul 17, 2018

Codecov Report

Merging #2178 into master will increase coverage by 0.14%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2178      +/-   ##
=========================================
+ Coverage   79.85%     80%   +0.14%     
=========================================
  Files         308     308              
  Lines       14167   14180      +13     
  Branches     2519    2520       +1     
=========================================
+ Hits        11313   11344      +31     
+ Misses       2842    2824      -18     
  Partials       12      12
Flag Coverage Δ
#MacOS 74.11% <100%> (+0.19%) ⬆️
#Windows 74.21% <100%> (+0.14%) ⬆️
Impacted Files Coverage Δ
src/client/common/installer/condaInstaller.ts 92.1% <ø> (+31.57%) ⬆️
src/client/common/installer/moduleInstaller.ts 66.66% <100%> (+9.25%) ⬆️
src/client/common/installer/pipEnvInstaller.ts 77.77% <100%> (ø) ⬆️
src/client/common/installer/pipInstaller.ts 88.88% <100%> (+8.11%) ⬆️
...rc/client/debugger/PythonProcessCallbackHandler.ts 68.75% <0%> (+0.32%) ⬆️
src/client/common/installer/productInstaller.ts 80.82% <0%> (+1.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b9796bb...267a3eb. Read the comment docs.

if (currentInterpreter && currentInterpreter.version_info && currentInterpreter.version_info[0] === 2) {
const newArgs = [...args];
// This command could be sent to the terminal, hence '<' needs to be escaped for Mac.
newArgs[indexOfPylint] = '"pylint<=2.0.0"';
Copy link
Member

Choose a reason for hiding this comment

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

pylint<2.0.0

Copy link
Author

Choose a reason for hiding this comment

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

Oops, thanks

Copy link
Author

Choose a reason for hiding this comment

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

Oops, thanks

@brettcannon
Copy link
Member

@DonJayamanne to get CI to complete faster I have gone ahead and edited your code to pass pylint<2.0.0.

@brettcannon brettcannon changed the title WIP - Ensure Pylint<=2.0.0 on Python 2.x WIP - Ensure Pylint<2.0.0 on Python 2.x Jul 17, 2018
@DonJayamanne DonJayamanne changed the title WIP - Ensure Pylint<2.0.0 on Python 2.x Ensure Pylint<2.0.0 on Python 2.x Jul 18, 2018
@DonJayamanne DonJayamanne merged commit 49d9161 into microsoft:master Jul 18, 2018
bschley pushed a commit to bschley/vscode-python that referenced this pull request Aug 2, 2018
* Ensure Pylint<=2.0.0 on Python 2.x
* Python 2.7 requires older than 2.0.0
* tests
* Add Tests
* Fix broken tests
* Redue nesting of suites
@DonJayamanne DonJayamanne deleted the issue2163Pylint branch October 2, 2018 22:47
@lock lock bot locked as resolved and limited conversation to collaborators Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Writing a comma in a string that is an argument to a function causes the pop up box to display
2 participants