hey guys, quick question regarding telling pants t...
# general
h
hey guys, quick question regarding telling pants to ignoring certain python files: we don’t want to generate BUILD files under our root not directly under our
src/
path. if someone has some
.py
files in either of these directories and runs
pants tailor
, they’ll get added automatically, which is what we want to avoid. what’s the right option to use here/what is the effective difference between these options? https://www.pantsbuild.org/docs/reference-tailor#section-ignore-paths https://www.pantsbuild.org/docs/reference-global#section-build-ignore
h
hi! I recommend
[tailor].ignore_paths
w
build_ignore
will prevent a file/directory from being-detected-as/containing a BUILD file, even if it exists and would otherwise match
👍 2
h
sounds good, i’ll use
[tailor].ignore_paths
then 🙂