Skip to content

ocuris/fastapi-template

Repository files navigation

Python Template

Overview

Requirements

  • Install python3
  • Install docker
  • Install mysql
  • Install dbmate

How to run

  • Create the environment
make venv
  • Install the dependencies
make dependency
  • Run the consumers
make start
  • Run the specific consumer

set specific consumer to true in environment variable

  • ENABLE_ACTION_TRIGGER_REQUEST
  • ENABLE_TRIGGER_ACTION_ORCHESTRATOR
  • ENABLE_ACTION_EXECUTION
ENABLE_ACTION_TRIGGER_REQUEST=true ENABLE_TRIGGER_ACTION_ORCHESTRATOR=true ENABLE_ACTION_EXECUTION=true make start

Running pre-commit hooks

  1. To install pre-commit run brew install pre-commit on your mac terminal. (https://pre-commit.com/#install)
  2. To run pre-commit automatically on running git commit run pre-commit install on your mac terminal.
  3. To run specific hook like flake8 run pre-commit run --hook-stage manual flake8. (flake8 is not automatically run)

Check Git blame

To check git blame git blame <filename> --ignore-revs-file .git-blame-ignore-revs needs to be run. To configure git to automatically ignore .git-blame-ignore-revs file git config blame.ignoreRevsFile .git-blame-ignore-revs needs to be run.

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors