EAO Project report services.
make setup
to set up the virtual environment and install libraries.pip install .
to set up the environment for running tests.You also need to set up the variables used for environment-specific settings:
.env
. You will need to fill in missing values.To prepare your local database:
docker-compose up -d
venv
environment:
export FLASK_APP=manage.py
flask db upgrade
(python -m flask run -p 5000)
make flake8
or flake8 src/reports_api tests
.make pylint
or pylint --rcfile=setup.cfg --disable=C0301,W0511 src/reports_api test
pytest
command.make coverage
to generate the coverage report, which appears in the htmlcov directory.