pytask
pytask copied to clipboard
Implementing typed-settings.
Would close #231.
Changes
This PR attemps to replace pytask's internal settings handling with typed-settings. typed-settings would take-over
- Finding the configuration files.
- Reading, parsing, consolidating the configuration from the cli, the configuration file and potentially environment variables.
Open points
- Is it possible to have an influence on the parameter declarations?
- Abbreviations for long flags, e.g.
-x/--exitfirstfrom pytest. - Possibility of flags compared to switches.
- Abbreviations for long flags, e.g.
- With
attr.ibit is not possible to provide help texts.- Implement own type to pass help texts.
- Empty settings classes should not be discarded, but returned as empty.
Todo
- [ ] Display defaults in cli.
- [ ] Check parsing of paths and precedence of cli over config. Check multiline paths in config
- [ ] test markers.