This is a Python-Poetry template project for private research use. Some conveniences are already set up, e.g., Jupyter Lab.
First, change the name "pypoetry-template" to your project name. Check:
pyproject.toml
pypoetry_template/
github/workspaces/ci.yaml
Now it's ready to setup the project. Run the following command.
poetry config virtualenvs.in-project true && poetry install
Before starting development, I recommend installing pre-commit, which does large file checking, auto-formatting, etc.
pre-commit install
poetry run juypter lab
poetry run pytest -s
- GitHub Actions automatically perform pytest.
- I often write experimental scripts in
scripts/
.