add rich support for logging and ruff for formatting

This commit is contained in:
Nick Sweeting 2024-09-05 21:44:18 -07:00
parent 2c48dabfab
commit a190745f36
No known key found for this signature in database
2 changed files with 14 additions and 0 deletions

View file

@ -14,3 +14,10 @@ timezone.utc = datetime.timezone.utc
# monkey patch django-signals-webhooks to change how it shows up in Admin UI
# from signal_webhooks.apps import DjangoSignalWebhooksConfig
# DjangoSignalWebhooksConfig.verbose_name = 'API'
# Install rich for pretty tracebacks in console logs
# https://rich.readthedocs.io/en/stable/traceback.html#traceback-handler
from rich.traceback import install
install(show_locals=True)