Skip to content
This repository has been archived by the owner on Aug 5, 2023. It is now read-only.

Latest commit

 

History

History
35 lines (23 loc) · 576 Bytes

tooling.md

File metadata and controls

35 lines (23 loc) · 576 Bytes

Tooling

Writing Logs

When you need to write to stdout, use the following wrapper:

from app.utils.logging import app_logger

app_logger.debug("Some useful information...")

Check out logging.yaml. Uvicorn relies on this config file.

Linters

  • isort
  • black
  • flake8
  • bandit

Their settings are placed in setup.cfg and .bandit.

Running all linters one by one:

make lint

I also recommend using a pre-commit hook to make sure your changes follow the project rules:

pre-commit install
pre-commit run