Closed santacodes closed 4 months ago
Thanks, @santacodes! Looks good to me. Could you please add a minimal CI job to check if the tests are working fine?
Sorry for the delay @Saransh-cpp, I was travelling. I added CI for the tests, created a nox session for testing the template generation, and tested it on my branch. Could you please review and look at it? Also, I added uv to the nox backend, which seems to be faster.
TODO:
TODO:
- [ ] Update branch protection rule to include the new CI (status checks must pass before merging)
I think I can only create a branch rule allowing merges only after status checks when the status checks themselves have been merged to the main branch.
Hi, don't worry about the rules. I'll set them up.
Hi, I'll review this in a couple of hours.
P.S. I'm sorry for the late review! I have been a bit out of touch, plus I noticed that Saransh and Arjun had already put in their reviews. I hope this is helpful.
@arjxn-py can you please review my last commit, I actually modified those test cases completely because I think they're better in terms of assertions and we don't have to play with paths as pytest-cookies
mostly takes care of it.
So one of the test cases tests template generation with default contexts from cookiecutter.json
while the other tests template generation with a custom context passed into the bake()
function. If you feel anything is wrong feel free to point it out so that I could revert it back if needed.
Before we merge, I'd just want to confirm if we can safely resolve the conversation about uv
caching plus can you maybe link the CI run on the latest commit from your fork here?
(I think we should disable the setting that dismisses reviews on further commits)
I'm merging this as @santacodes needs to start working on entrypoints as well. Although everything looks good but in case something fails we can look into it later as well
(I think we should disable the setting that dismisses reviews on further commits)
Yes, I was going to mention that reviews were getting dismissed automatically
Description
pytest-cookies
.cookiecutter
as a dependency and setup___init.py__
for the src layout.