IgnazioGul / QualityDevelopmentProject

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Development

Gitflow must be used during development process.

We will use following branches:

When a new feature is completed and ready for testing, a pull request to develop must be open.

Install

python -m venv ./venv

venv\Scripts\activate

pip install -r requirements_dev.txt
pip install -r requirements.txt

Run

py bot.py

Testing

Add unit-test to ./tests, then run:

pytest --cov src tests/ --cov-report=html --cov-fail-under=75

Please note that you cannot push a projecy version that has <75% code coverage.

Configuration and setup

Secrets are picked up from environment variables, stored in the running machine.

Environment variables names are host dependent, thus their names are configured by constants.ini constants file.

The following environment variables are needed for the bot execution:

  • One which contains the key to authenticate fo telegram APIs.
    The name of the environment variable is specified by TELEGRAM_BOT_TOKEN_NAME constant.
  • One which contains the key to authenticate fo OpenWeather APIs.
    The name of the environment variable is specified by WEATHER_KEY_NAME constant.

About


Languages

Language:Python 100.0%