A repo with a template for creating python applications
You must run python version 3.9 for this application.
In order to get started you have to:
-
Create your
.envfile:cp .env.example .env -
Set the value in your
.envfile:Param Description MY_FOODescription MY_BARDescription
- Install venv if it's not done already
- Create the venv environement:
make venv-init - Launch the application
make app
To start developping the application:
- Create the venv environement:
make venv-init - Activate the venv environment:
. penv/bin/activate
Note:
If you get:
ModuleNotFoundError: No module named 'src'run: export PYTHONPATH=./src/:$PYTHONPATH in your venv
If you get the following when running make venv-init
[ERROR] Cowardly refusing to install hooks with `core.hooksPath` set.
hint: `git config --unset-all core.hooksPath`
- Comment out
hooksPathin ~/.gitconfig - Run
make venv-init - Uncomment
hooksPathin ~/.gitconfig
The testing library used is: py.test
- To install:
pip install pytest - To launch the test:
py.test
Unit test: You provide the input and assert the output. Integration testing: Test the components of the application are being called.
Objective:
- Clone this project
- Make something fun