Hi. When using pants with mypy is there a way to t...
# general
b
Hi. When using pants with mypy is there a way to tell pants to exclude a folder when running mypy?
r
Hi! What command are you running?
b
./pants mypy src/some_path::
r
If you want to filter by folder, you can use
--pants-ignore="my/folder"
as an option (
./pants --pants-ignore=... mypy <target>
)
Or, if you want more fine-grained control, you can ignore targets with
--exclude-target-regexp=
in general, if you search for “exclude” in this page https://www.pantsbuild.org/options_reference.html
You’ll get some handy options.
b
thanks. I will try that out
r
The way I usually go about discovering options is
./pants help-all | grep <approximately what I'm looking for>
, so I’d do
./pants help-all | grep exclude
Cool 🙂 have fun, let us know if you have any issues 🙂
b
👍