Refactor code: Introduce configuration and runtime data models#36
Open
dlucredativ wants to merge 4 commits intomainfrom
Open
Refactor code: Introduce configuration and runtime data models#36dlucredativ wants to merge 4 commits intomainfrom
dlucredativ wants to merge 4 commits intomainfrom
Conversation
82977be to
1c29e55
Compare
439aabf to
c13db0b
Compare
This was referenced Jan 29, 2026
Closed
c13db0b to
0c6f97f
Compare
cd-fge
reviewed
Feb 2, 2026
dlucredativ
added a commit
that referenced
this pull request
Feb 2, 2026
dlucredativ
added a commit
that referenced
this pull request
Feb 2, 2026
#36 (comment) Two initializations had to go back to the Field(default_factory=...) approach due to https://errors.pydantic.dev/2.12/u/class-not-fully-defined
dlucredativ
added a commit
that referenced
this pull request
Feb 2, 2026
#36 (comment) Two initializations had to go back to the Field(default_factory=...) approach due to https://errors.pydantic.dev/2.12/u/class-not-fully-defined
7e580ed to
ad3a5dd
Compare
- User configuration is validated with `pydantic` (This needs Python >= 3.11). - Runtime state is modelled so that a type checker can evaluate object access. - `proxlb` is a module now and can be executed via `python3 -m proxlb -c configfile`. - Introduce mypy and flake8 tests Add flake8 test fixup
#36 (comment) Two initializations had to go back to the Field(default_factory=...) approach due to https://errors.pydantic.dev/2.12/u/class-not-fully-defined
ad3a5dd to
da2cb94
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pydantic(This needs Python >= 3.11).proxlbis a module now and can be executed viapython3 -m proxlb -c configfile.I have placed some
FIXMEs which I cannot decide upon myself.