/alembic

Alembic template, with auto-generated revision and migrations.

Primary LanguagePythonBSD 2-Clause "Simplified" LicenseBSD-2-Clause

Alembic

Alembic template, with auto-generated revision and migrations.

Each database schema are separated into folders (Ex: model/) and revised/migrated independently for isolation.

Integration

Development

Prerequisitive

Name Version
Python 3.8
pipenv(Python module) 2018.11.26 or up

Environment setup

  1. Initialize environment variable
cp sample.env .env
  1. Initialize Python environment
make init
  1. Enter the environment and start developing
pipenv shell
  1. Start related components of API service
make service_up
  1. (Optional) Create revision
make model_revision
  1. (Optional)Migrate to latest revision
make model_migrate

Formatting

This project uses black and isort for formatting

make reformat

Linting

This project uses pylint and flake8 for linting

make lint

Contribution