Where do I put a Guild file in my project?

Add the Guild file to the project root. It should be next to other automation configuration files (e.g. setup.py, Makefile, pyproject.toml, etc.)

Project
guild.yml
setup.py
pyproject.toml

If your project supports sub-projects, add it to the root of the applicable project.

If your project soure code is located in a src subdirectory, include the path in your main specs.

Project
guild.yml
setup.py
pyproject.toml
src
train.py

train:
  main: src/train

If the main module is part of a Python package, include the package name.

Project
guild.yml
setup.py
pyproject.toml
src
models
__init__.py
train.py

train:
  main: src/models.train

A post was split to a new topic: Running Guild from Python code