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

Append --pre to black installation command when pipenv is used #5393

Merged
merged 4 commits into from
Apr 25, 2019

Conversation

erinxocon
Copy link

@erinxocon erinxocon commented Apr 21, 2019

Black is currently in pre-prelease on pypi, hence pipenv fails to install it when vscode-python invokes it. This fixes that with a special case for black that applies the --pre flag when it is installed. This will allow all pre-releases in a pipfile so if a user doesn't want to have pre-release packages and still wants to use black, they should install black globally and make sure it's in their path. Then you can set the proper settings in vscode to tell it where the black executable is located.

For #5171

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
  • Title summarizes what is changing
  • Has a news entry file (remember to thank yourself!)
  • Has sufficient logging.
  • Has telemetry for enhancements.
  • Unit tests & system/integration tests are added/updated
  • Test plan is updated as appropriate
  • package-lock.json has been regenerated by running npm install (if dependencies have changed)
  • The wiki is updated with any design decisions/details.

This is so it can be resolved correctly by pipenv
@msftclas
Copy link

msftclas commented Apr 21, 2019

CLA assistant check
All CLA requirements met.

@erinxocon erinxocon changed the title Append --pre to black installation command Append --pre to black installation command when pipenv is used Apr 21, 2019
@brettcannon brettcannon added this to the 2019 - April Sprint 9 milestone Apr 25, 2019
@DonJayamanne DonJayamanne merged commit 6dbd8b6 into microsoft:master Apr 25, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jul 30, 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.

4 participants