dafrenchyman / PythonProjectTemplate

DO NOT FORK - Click "Use This Template"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PythonProject

Setup for developement:

  • Setup a python 3.x venv (usually in .venv)
    • You can run ./scripts/create-venv.sh to generate one
  • pip3 install --upgrade pip
  • Install pip-tools pip3 install pip-tools
  • Update dev requirements: pip-compile --output-file=requirements.dev.txt requirements.dev.in
  • Update requirements: pip-compile --output-file=requirements.txt requirements.in
  • Install dev requirements pip3 install -r requirements.dev.txt
  • Install requirements pip3 install -r requirements.txt
  • pre-commit install

Update versions

pip-compile --output-file=requirements.dev.txt requirements.dev.in --upgrade pip-compile --output-file=requirements.txt requirements.in --upgrade

Run pre-commit locally.

pre-commit run --all-files

About

DO NOT FORK - Click "Use This Template"


Languages

Language:Shell 100.0%