Opinionated Python template for new scripts.
- Go to or create the project folder.
- Get the template files:
npx degit github:joaopalmeiro/template-python-script
or
npx degit github:joaopalmeiro/template-python-script --force
- Search for
template-python-script
and replace it with the project name. - Search for
Opinionated [Python](https://www.python.org/) template for new scripts.
and replace it with the (short) project description. - Search for
João Palmeiro
and replace it with the author's name. - Install pyenv (if necessary).
- Run the first two commands in the
Development
section to install Python and Pipenv (if necessary). - Run the third command in the
Development
section to create the virtual environment. - Open the NOTES.md file and install the project-specific dependencies according to the first command in the Commands section.
- Delete the
Template References
section from the NOTES.md file. - Delete the
Getting Started
section.
Install pyenv (if necessary).
pyenv install && pyenv versions
pip install pipenv==2023.11.15 && pipenv --version
pipenv install --dev --skip-lock
pipenv run codespell
pipenv run ruff check .
pipenv run ruff check --fix .
pipenv run ruff format .
pipenv run python 01.py