Skip to content

Fintechless MicroService - Message Outgoing (Fintechless is the Serverless Platform for Financial Institutions and Fintechs)

License

Notifications You must be signed in to change notification settings

fintechless/ftl-msa-msg-out

ftl-msa-msg-out

Fintechless Platform - MicroServices Architecture - Message Outgoing

Local development

Virtual environment

You'll need poetry. This Python repository uses Poetry for managing its packages and dependencies. Exit from your current virtual environment, if activated. Execute the following command in order to install Poetry:

pip install poetry

It is recommended you create a separate virtual environment (Python >=3.10) using venv. In order to create a new virtual environment, execute the following command:

poetry shell

Dependencies

In order to install the dependencies execute the following command in your shell:

poetry install

If you need to add a new dependency for development, you can execute the following command in your shell:

poetry add <NAME> --dev

If you need to add a new required dependency, you can execute the following command in your shell:

poetry add <NAME>

Tests

Before running the tests, spin up Kafka on your local machine. In order to do so, execute the following:

docker compose -f docker-compose.yml up -d

Once Kafka is up and running, you can run the tests by executing the following command in your shell:

poetry run tests

To stop Kafka, please execute the following command:

docker compose -f docker-compose.yml stop

Code formatting

This library uses black in order to format the code using the PEP8 style guide. Execute the following command to format the code (make sure to install all the dependencies with Poetry):

poetry run format

Code linting

This library uses pylint to analyze the code in order to ensure that it's PEP8 compliant. Execute the following command to analyze the code (make sure to install all the dependencies with Poetry):

poetry run lint