Hi, what's the correct way to ignore directory fro...
# general
r
Hi, what's the correct way to ignore directory from
pants test ::
I added this to
pants.toml
Copy code
[pytest]
args = ["--ignore=./my_dir"]
Doesn't work :(
h
Hello! Do you still want Pants to generally operate on that code, like running linters and formatters? Just want to skip tests? If so, you can use the
skip_tests
field. This part of docs also gives a command to query which tests you use Pants for and which are your old test runner, which you can then pipe into that runner: https://www.pantsbuild.org/docs/existing-repositories#3-set-up-tests
r
I want to completely ignore the directory actually. Pants doesn't need to do anything with it
h
cool, then use this:
Copy code
[GLOBAL]
pants_ignore.add = ["my-dir/"]
👍 1