DiamondLightSource / python-copier-template

Diamond's opinionated copier template for pure Python projects managed by pip
Apache License 2.0
4 stars 2 forks source link

Issues when creating new project #117

Closed AlexanderWells-diamond closed 5 months ago

AlexanderWells-diamond commented 6 months ago

Here's a list of bits and pieces I encountered when creating a new project from scratch:

AlexanderWells-diamond commented 6 months ago

Additionally, it may be worth adding a link somewhere to the Podman fix that I also had to run: https://dev-portal.diamond.ac.uk/guide/containers/tutorials/podman/#enable-use-of-vscode-features

coretl commented 5 months ago

I couldn't reproduce the pre-commit failure, and I don't understand how it got pre-commit configuration detected, but pre-commit install was never run. How did the commit hook get added if not by running pre-commit install? Do you have something like https://pre-commit.com/#pre-commit-init-templatedir ?

AlexanderWells-diamond commented 5 months ago

I don't think I ever set that up, but as mentioned in my list of problems I did have to do a forced override of some pre-commit cache somewhere, so perhaps that whole section of problems is just a me thing.