-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the root options to a Pydantic Model
The long term is goal is to move all CLI configurations to models. Currently attributes are slapped onto one big inherited object and make it difficult to determine where something is coming from, and there is significant coupling. Moving the options into a base model allows for all validation and conditional logic to be handled within the model, and then the model can be passed to places where the configuration may be needed. This will lessen the overuse of passing around big sets of kwargs and taking out what is needed, and will ensure that the CLI options are seamlessly available in all the different areas they are needed. This starts with just the RootCommand, which takes the "global" or top level options.
- Loading branch information
Showing
20 changed files
with
646 additions
and
423 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[settings] | ||
known_third_party = atlassian,boto3,botocore,click,deepdiff,google,hcl2,jinja2,mergedeep,moto,pydantic,pytest,yaml | ||
known_third_party = atlassian,boto3,botocore,click,deepdiff,google,hcl2,jinja2,lark,mergedeep,moto,pydantic,pytest,yaml | ||
profile = black |
This file contains 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
This file contains 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
Oops, something went wrong.