Skip to content

AndreaPiccione/template

Repository files navigation

Description of the repo here

Repo Structure

Generated using tree -L 2 -I "_*" (need to install via brew install tree)

.
├── LICENSE
├── Makefile
├── README.md
├── poetry.lock
├── poetry.toml
├── pyproject.toml
├── src
│   └── package
└── test
    └── test_example.py

Contributing

  1. Clone out the package
  2. Ensure you have a python 3.13 installation active.
  3. I would recommend doing this via brew install pyenv, and then run pyenv install 3.13 to install, and then run pyenv shell 3.13.0 (or whatever version installed).
  4. pyenv is not available on Windows. Best alternative is Python install manager (check here) or uv itself.
  5. Open a window in your IDE terminal and run make install
    1. This will update pip, uv and then install the packages via uv
    2. It will also set up the .venv folder with a symlink to the right python version, so you wont have to run the pyenv/pymanager shell again
  6. Ensure that your VSCode Python interpreter is pointing to the python in .venv/bin/python (open the command palette and click on Python: Select Interpreter. The created python interpreter/env should be listed as Recommended)
  7. Validate all your code formatting and tests via make precommit, make tests (or make all to run both) manually.

Adding dependencies

  1. Dependencies are added to the pyproject.toml file under the dependencies section. It is very simple, let's say you want to add pandas v2, you just add the line "pandas>=2.0.0".
  2. When dependencies are updated, you need to run uv sync to reflect the changes in your lock file.
  3. Run make install again to update the dependencies in your local virtual environment.

For more details on uv usage https://docs.astral.sh/uv/guides/install-python/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors