Closed JoeZiminski closed 2 years ago
This is great thanks @JoeZiminski! I'll have a go at building this up further.
I've generalised this, so it should run on any machine, and added a workflow to run this via GH actions.
I haven't changed the tests much, so we may be able to streamline these a bit. pre-commit
should also be run on the built package.
I think it's probably best to get this initial version merged, then work on linting etc later, what do you think @JoeZiminski?
Requesting review from @niksirbi / @lauraporta
Looks good to me. Great job with the tests @JoeZiminski. I would also say let's merge this and add more testing functionalities later
Agree looks good to me and can implement linting etc later
It would be nice to test certain aspects of the cookiecutter (e.g. if pass linting #19, #20). I started this in a team coding a while back but didn't look at it since. I'm not sure how useful it is, but we could use this PR as a basis for discussing tests of python-cookiecutter.
Currently it installs cookiecutter (using a config file rather than command line), checks the pyproject.toml values from the created project are as expected and installs with pip install -e . and checks it has installed correctly. Its quite rough ATM lots of things not optimal.
It would also be useful to pip install . and check it is installed to site packages, and maybe git init, and run some linting checks or others.