Python repository to use as a template to build Rest API, Integrations and more
- Be sure you have Poetry installed
- Run on terminal
poetry install - Run
poetry shellto activate the virtual environment that is created - Run
install-precommit-hook
- Sync VS Code with Poetry Virtualenv:
Ctrl + Shift + P (Linux) -> Select Python Interpreter -> Enter Interpreter path -> /$YOUR_PATH/pypoetry/virtualenvs/accounting-service-qBE57-es-py3.10 - Go to VS Code Test Explorer -> Configure Python Tests -> Select
pytest-> Selecttests
- Get requirements.txt from poetry:
poetry export --without-hashes --format=requirements.txt > requirements.txt - Update Local Dependencies:
make poetry-install