Opinionated Python template for new scripts.
- Go to or create the project folder.
- Get the template files:
npx degit github:joaopalmeiro/template-python-scriptor
npx degit github:joaopalmeiro/template-python-script --force- Search for
template-python-scriptand 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 Palmeiroand replace it with the author's name. - Install pyenv (if necessary).
- Run the first two commands in the
Developmentsection to install Python and Pipenv (if necessary). - Run the third command in the
Developmentsection 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 Referencessection from the NOTES.md file. - Delete the
Getting Startedsection.
Install pyenv (if necessary).
pyenv install && pyenv versionspip install pipenv==2023.11.15 && pipenv --versionpipenv install --dev --skip-lockpipenv run codespellpipenv run ruff check .pipenv run ruff check --fix .pipenv run ruff format .pipenv run python 01.py