Is there a way to extract the version of `black` p...
# general
a
Is there a way to extract the version of
black
pants want's to use? Pants is using one for linting/formatting, but my IDE decided to install another, and now I get to play formatter-ping-pong (the IDE is using a v_env poduced by: https://www.pantsbuild.org/docs/python-third-party-dependencies#tip-set-up-a-virtual-environment-optional , which doesn't collect the tooling deps)
w
./pants help-advanced black
should show you the
--version
field. or can go to https://www.pantsbuild.org/docs/reference-black#section-version on the relevant version of the docsite
h
or
./pants help-all
for JSON you can query
I also had a proposal at https://github.com/pantsbuild/pants/issues/12449 to allow that option to point to a target, meaning you could start storing the black version in
requirements.txt
etc: https://github.com/pantsbuild/pants/issues/12449 Feel free to weigh in 🙂
👍 1
a
👍