Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config Enhancements #9

Merged
merged 6 commits into from
Mar 18, 2024
Merged

Config Enhancements #9

merged 6 commits into from
Mar 18, 2024

Conversation

techman83
Copy link
Contributor

Adds

  • Config Mixing
  • Basic Config validation
  • Settings as Dataclasses

Fixes

  • Loader fail on empty service

Refactor

  • Instantiate Terraform Actions with Dataclasses

It's very useful to be able to build config in compontents. Config that is universal
regardless of environment, and config that is enviornment specific. This allows mixing
of config with a defined resolution order
It's entirely plausible that there might be situations where there is *only* a name
and enviornment provided to cally, with no further config. The loader shouldn't
throw an exception if this occurs
To make things a little easier downstream of the loader, having some basic
validation will make errors more obvious
We are now using these args, no longer need to exclude them
This will drastically simplify producing a config compatible with the consuming
command or action
This leans on the previous commits work to instantiate a stack via a dataclass
Copy link

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
338 288 85% 0% 🟢

New Files

File Coverage Status
src/cally/cli/config/validators.py 100% 🟢
TOTAL 100% 🟢

Modified Files

File Coverage Status
src/cally/cli/_init_.py 100% 🟢
src/cally/cli/commands/tf.py 100% 🟢
src/cally/cli/config/_init_.py 100% 🟢
src/cally/cli/config/loader.py 85% 🟢
src/cally/cli/config/types.py 100% 🟢
src/cally/cli/tools/terraform.py 100% 🟢
TOTAL 97% 🟢

updated for commit: undefined by action🐍

@techman83 techman83 merged commit 5d377fa into main Mar 18, 2024
3 checks passed
@techman83 techman83 deleted the feat/config-enhancements branch March 18, 2024 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant