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

Dataclass-based config #396

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Dataclass-based config #396

wants to merge 1 commit into from

Conversation

tony
Copy link
Member

@tony tony commented Sep 25, 2022

Changes

  • New config object: Config
    • Raw config from yaml: from_yaml_file(file_path: pathlib.Path, cwd=pathlib.Path.cwd())
    • repo_dict_map: Internal mapping of configs after expansion and processing in environment
    • repos: A list of GitSync, SvnSync, HgSync objects

@codecov
Copy link

codecov bot commented Sep 25, 2022

Codecov Report

Merging #396 (a2e5a2b) into master (2654f9f) will increase coverage by 0.00%.
The diff coverage is 72.60%.

❗ Current head a2e5a2b differs from pull request most recent head bd8b741. Consider uploading reports for the commit bd8b741 to get more accurate results

@@           Coverage Diff           @@
##           master     #396   +/-   ##
=======================================
  Coverage   84.00%   84.01%           
=======================================
  Files          17       16    -1     
  Lines         938      926   -12     
  Branches      168      166    -2     
=======================================
- Hits          788      778   -10     
- Misses        100      101    +1     
+ Partials       50       47    -3     
Impacted Files Coverage Δ
src/vcspull/config.py 79.03% <60.00%> (-5.64%) ⬇️
tests/test_config_object.py 100.00% <100.00%> (ø)
tests/test_config_file.py 95.32% <0.00%> (-0.11%) ⬇️
conftest.py 78.04% <0.00%> (ø)
src/vcspull/log.py 68.42% <0.00%> (ø)
src/vcspull/util.py 100.00% <0.00%> (ø)
src/vcspull/types.py 100.00% <0.00%> (ø)
src/vcspull/_internal/config_reader.py
src/vcspull/validator.py
tests/test_sync.py 91.30% <0.00%> (+1.02%) ⬆️
... and 3 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

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.

None yet

1 participant