https://github.com/radenkovic/python-template
Low dependency python template with black, flake8, pytest and poetry
https://github.com/radenkovic/python-template
boilerplate jupyter jupyter-notebook poetry python python-template template template-python vscode
Last synced: 6 months ago
JSON representation
Low dependency python template with black, flake8, pytest and poetry
- Host: GitHub
- URL: https://github.com/radenkovic/python-template
- Owner: radenkovic
- Created: 2023-01-22T16:12:06.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T17:34:33.000Z (over 1 year ago)
- Last Synced: 2025-06-07T22:06:33.924Z (7 months ago)
- Topics: boilerplate, jupyter, jupyter-notebook, poetry, python, python-template, template, template-python, vscode
- Language: Jupyter Notebook
- Homepage:
- Size: 73.2 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python Template
Simple Python template with pytest, black, and flake8
This is a super simple template for python3.11.
It includes configs for VSCode (test runner config and project config)
## Getting Started
- Install poetry first
- `python3.11 -m venv venv` (to create virtualenv)
- Install `poetry` if needed
- Development: poetry install --with jupyter
- `with --jupyter` only if you need notebooks
- Production: poetry install --only main
## Includes
- Uses `poetry` as package manager
- Tests integrated in VSCode (tests panel)
- Sorts out PYTHONPATHs
- tests
- notebooks
- vscode debugger
- Notebook imports from venv working
- `black` for formatting
- `flake8` for linting
## `requirements.txt` generation
```bash
poetry export --without-hashes --with dev --format=requirements.txt > requirements.txt
```