Config files should be readable and editable by both humans and machines. What defines this? A format with a clear specification (for the machines to parse) and easy on the eyes/fingers (for humans to read and modify). There are a few popular options:
Cargo.toml, and for Python project configs in
I reach for TOML if I have the choice.