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 updater workflow #267

Merged
merged 7 commits into from
Dec 26, 2024
Merged

Config updater workflow #267

merged 7 commits into from
Dec 26, 2024

Conversation

sbillinge
Copy link
Contributor

closes #244

This is the new separate workflow for updating the config file if it is found to be missing in home.

Copy link

codecov bot commented Dec 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (969ca54) to head (8d0bf06).
Report is 8 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main      #267      +/-   ##
===========================================
+ Coverage   98.68%   100.00%   +1.31%     
===========================================
  Files           8         8              
  Lines         379       405      +26     
===========================================
+ Hits          374       405      +31     
+ Misses          5         0       -5     
Files with missing lines Coverage Δ
tests/test_tools.py 100.00% <100.00%> (+13.88%) ⬆️

@sbillinge
Copy link
Contributor Author

@bobleesj @yucongalicechen @alisnwu this is ready for review

@yucongalicechen
Copy link
Contributor

Just another comment - looks like this function does not have docstring yet

Copy link
Contributor Author

@sbillinge sbillinge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the comments @yucongalicechen. I fixed them. Writing the docstring also made me realize we may want to return the status of if a config file is found. Then a user could use the function with the skip but if it returns False make their own workflow, which is nice and flexible. Great reviews everyone!

src/diffpy/utils/tools.py Outdated Show resolved Hide resolved
@bobleesj
Copy link
Contributor

seems like a conflict created now hm..

@sbillinge
Copy link
Contributor Author

Ok, I will fix and merge

@sbillinge sbillinge merged commit 40c3446 into diffpy:main Dec 26, 2024
5 checks passed
@sbillinge sbillinge deleted the configupdate branch December 26, 2024 21:45
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.

implement a skip_config_creation option in get_user_info
3 participants