https://pantsbuild.org/ logo
#general
Title
# general
b

billowy-motherboard-58443

09/21/2020, 3:04 PM
so, what is the rule on "where does one have to have a BUILD file, and what contents are required?"
h

hundreds-father-404

09/21/2020, 4:12 PM
You need a target to cover every file that you want Pants to know about. A good default is to have one BUILD file per distinct directory: https://www.pantsbuild.org/docs/targets#target-granularity As Danny explained, you can also have coarser targets that cover subdirectories too by using recursive globs like
**/*.py
in the
sources
field