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

Output python version and implementation as part of --version flag #2997

Merged
merged 3 commits into from Apr 6, 2022

Conversation

jpy-git
Copy link
Contributor

@jpy-git jpy-git commented Apr 6, 2022

Description

Closes #2992. Updates the --version flag to include details of python version running black.
e.g.

black, 22.1.1.dev56+g421383d.d20220405 (compiled: no)
python, 3.9.12 (CPython)

I've also included the python implementation in case we ever get PyPy (or other implementation) specific issues.

Checklist - did you ...

  • Add a CHANGELOG entry if necessary?
  • Add / update tests if necessary?
  • Add new / update outdated documentation?

@github-actions
Copy link

github-actions bot commented Apr 6, 2022

diff-shades reports zero changes comparing this PR (94e4b33) to main (9b30740).


What is this? | Workflow run | diff-shades documentation

src/black/__init__.py Outdated Show resolved Hide resolved
jpy-git and others added 2 commits Apr 6, 2022
Copy link
Collaborator

@ichard26 ichard26 left a comment

It's nice not having to review AST mangling code, it's always a bit of a pain to review. 🙂

@ichard26 ichard26 merged commit f6188ce into psf:main Apr 6, 2022
40 checks passed
@JelleZijlstra
Copy link
Collaborator

JelleZijlstra commented Apr 6, 2022

ASTs are nice, it's the lib2to3 CST that's the problem :)

@jpy-git jpy-git deleted the python_version branch Apr 6, 2022
@ichard26
Copy link
Collaborator

ichard26 commented Apr 6, 2022

The lib2to3 CST is the only thing I know >.< ... but yeah power, atom, etc. are confusing at best. I'd assume something like LibCST would be much more understandable.

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.

4 participants