Creating a new python project#
To create a new project, you can do the following:
- Make a new directory for your project in the
projects/directory. - Run
uv initinside the directory, to initialize the dependencies within the workspace. - Set the version of the project in the
pyproject.tomlfile to0.0.0. - Create a
[dependency-groups]section in thepyproject.tomlfile and addpytestto thedevgroup. This will be the place for all your development dependencies that are not needed when importing the project elsewhere. - Create a
tests/directory to handle your pytests. -
Add a
Makefilewith aninstallandtesttargets.testcan depend on your exact implementation of pytest, you may need to do multi-threads, or skip certain tests, etc.