feat: add TOML config parser #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/config-parser"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Introduces a typed config parser using dataclasses.
Nice use of dataclasses! One thought: we should validate that
portis within a valid range (1-65535).The
tomlifallback for Python < 3.11 is a nice touch 👍Should we add environment variable overrides? e.g.
APP_PORT=9090takes precedence over the config file.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.