Pants newbie here :wave: I'm trying to implement P...
# general
b
Pants newbie here 👋 I'm trying to implement Pants on our Python repo and things are going well, but now I've gotten to typechecking. Most of our code is typechecked by mypy, but one library seems to be better handled by pytype. Is anyone aware of a pytype plugin for Pants? Barring that, is there a way that I can configure Pants such that when I run
./pants typecheck ::
I can exclude the library that needs pytype? Thanks.
1
p
you could add tags to a target, this will look something like this:
👍 1
and then when running:
./pants --tag=-nolint <goal> ::
that target will be excluded from the run.
b
ah, nice!
p
AFAIK there is no pytype plugin for pants.
h
Indeed, no pytype plugin, but we'd be happy to help you if you wanted to add one!
b
Appreciated... we're going to see if we can't get our lone library onto mypy, though 😅 In the meantime, I think the tagging approach should work for us.
🤞 1
👍 1
h
And to be clear, although it's probably obvious, "nolint" can be an arbitrary string of your choosing.
👍 1
b
👍