Copy link
Copy Markdown
Contributor
Issue Addressed:
This PR implements support for TOML files as configuration files and sets pyproject.toml as the default. It addresses the #2298 issue.
Implementation Details:
- Used the built-in
CompositeConfigParserwithTomlConfigParserandDefaultConfigFileParser, which allow the configargparse lib to automatically parse options from defined.confand.tomlfiles. - Added
pyproject.tomltoDEFAULT_CONFIG_FILES. - Introduced a new project dependency - toml, which is required for the
configargparseTOML parser to work. - Added tests to check the correct parsing of
.confand.tomlconfiguration files. - Reworked the Configuration File documentation section.
Copy link
Copy Markdown
Contributor Author
@cyberw Hello! I've replaced the toml lib and added a custom parser.