Defined within the pyproject.toml file, the local configuration is used to customize the behavior of cppython for a specific project. The configuration is defined under the [tool.cppython] table.
Configuration exists in four places, each with a different default scope. The order of precedence is as follows:
-
Configuration file override provided by the CLI or local
pyproject.tomlfile. -
The local configuration file,
cppython.toml, in the current working directory. -
The user level configuration file,
cppython.toml, in the user’s home directory. -
The global configuration file,
cppython.toml, in the system configuration directory.
Each configuration file that is found will be merged into the next configuration file found.