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

fix: skip tasks in pretend mode #970

Merged
merged 6 commits into from
Mar 29, 2023

Conversation

sisp
Copy link
Member

@sisp sisp commented Feb 15, 2023

Copier now skips tasks execution in pretend mode as discussed in #950. I've extended the fix to also skip migration tasks in pretend mode although they weren't explicitly mentioned in #950, but I think that is consistent behavior.

Fixes #950.

@codecov
Copy link

codecov bot commented Feb 15, 2023

Codecov Report

Merging #970 (b2f5a3c) into master (37388f9) will decrease coverage by 0.39%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #970      +/-   ##
==========================================
- Coverage   96.66%   96.28%   -0.39%     
==========================================
  Files          42       42              
  Lines        3122     3201      +79     
==========================================
+ Hits         3018     3082      +64     
- Misses        104      119      +15     
Flag Coverage Δ
unittests 96.28% <100.00%> (-0.39%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
copier/main.py 94.70% <100.00%> (+0.24%) ⬆️
tests/test_migrations.py 100.00% <100.00%> (ø)
tests/test_tasks.py 100.00% <100.00%> (ø)

... and 27 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

copier/main.py Outdated Show resolved Hide resolved
copier/main.py Outdated Show resolved Hide resolved
Copy link
Member

@yajo yajo left a comment

Choose a reason for hiding this comment

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

The patch looks good to me, but I bet you want to add some types to these tests before merging, right? 😉

@sisp
Copy link
Member Author

sisp commented Mar 22, 2023

Absolutely! 😆 I've added the type hints and also improved the formatting a bit 😉.

@yajo yajo merged commit 453cbf9 into copier-org:master Mar 29, 2023
@sisp sisp deleted the fix/skip-tasks-in-pretend-mode branch March 29, 2023 15:04
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.

Do not run tasks in --pretend mode
2 participants