Тестовое задание в компанию НВП Болид
We use Trunk Based Development to work with git
<type>[!](<scope>): [#<issue num>] <description>
<type>/[#<issue num>-]<task_name>
Types:
- feat - new functionality
- bug - fix the bug by issue
- fix - fix the bug, if you found it (without issue)
- chore - refactoring and another routine (maybe without issue)
- Clone repository and
cd
into its directory:
$ git clone https://github.com/novoseltcev/interview-bolid-backend.git && cd interview-bolid-backend
- Install poetry:
$ curl -sSL https://install.python-poetry.org | python3 -
- Install dependencies and activate python-env:
$ poetry install && poetry shell
-
Configure environment:
- Copy example environment preset and open its:
$ cp .env.example .env && vim .env
- Configurate DB connection for local db or use default values for docker running:
POSTGRES_USER= POSTGRES_PASSWORD= POSTGRES_HOST= POSTGRES_PORT= POSTGRES_DB=
-
Run server:
- Local development server:
$ migrate upgrade && app
- Inside container:
$ docker-compose up -d --build && poetry run preset
We use linter flake8
, static type checker mypy
, PEP 8 compliant opinionated formatter black
, imports sortings utility isort
.
$ lint
$ format
$ preset