Skip to content

Collect settings in a single file?

I have started putting some common settings (vertical split factors) in a yaml file (see !5 (merged)).

As we define more of such "constants", the question is whether we create separate files for each of them or collect everything in a single yaml file (or toml, or whatever).

The latter could be more straightforward to import but slightly harder to maintain as the project grows. A compromise solution would be to create separate yaml files and write a shared function (e.g. read_settings) that merges them and returns a single config dictionary.