final_engineering_project
Setup
- Install VSCode.
- Install Python [3.7+].
- Install Poetry.
Installation
- open terminal in dir.
poetry install
.- Run
poetry show -v
in root and paste python path in./.vscode/settings.json
under"python.pythonPath"
.- In linux, simply run this instead -
cat .vscode/settings.json | sed "s|\"python.pythonPath\": \".*\"|\"python.pythonPath\": \"`poetry show -v | grep -r "virtualenv" | sed 's/.*: //1'`/bin/python\"|1" > ./.vscode/settings.json
- In linux, simply run this instead -
Usage
- Everything can be done from VSCode (Such as debug, test and etc).
- Couple of CLI tools:
poetry run start
- start app.poetry run black .
- Format code.poetry run flake8 .
- Lint code.poetry run pytest ./tests
- Run tests.
Dev notes
- Used this implementation as base for this project.