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.
- 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