New `pants` user. I've added some new backends aft...
# general
l
New
pants
user. I've added some new backends after installing and initializing pants. What command do I run to get pants to recognize the new backends?
f
You have added the backends into
pants.toml
? They will be picked up at the next Pants invocation.
l
Copied from the python example repo
Copy code
backend_packages.add = [
  "pants.backend.build_files.fmt.black",  
  "pants.backend.python",
  "pants.backend.python.lint.docformatter",
  "pants.backend.python.lint.black",
  "pants.backend.python.lint.flake8",
  "pants.backend.python.lint.isort",
  "pants.backend.python.typecheck.mypy",
]
running
pants
quietly does nothing
f
Then just continue to use Pants, those backends should be available for whatever goals you use.
Try
pants fmt ::
Or
pants lint ::
, you should pick up the new linter backends
l
With the
mypy
backend I was expecting to have a
typecheck
goal
but that doesn't seem to be present
f
It's the
check
goal
l
ah, that makes sense
w
would follow the instructions from item 3 in here probably: https://www.pantsbuild.org/docs/initial-configuration .. but yea,
check
l
cheers