Fixes pylint complaints

This commit is contained in:
Mouse Reeve 2022-02-04 18:50:57 -08:00
parent 7811a9920e
commit bc7aa91b97

View file

@ -32,8 +32,11 @@ class BookwyrmConfig(AppConfig):
name = "bookwyrm"
verbose_name = "BookWyrm"
# pylint: disable=no-self-use
def ready(self):
"""set up OTLP and preview image files, if desired"""
if settings.OTEL_EXPORTER_OTLP_ENDPOINT:
# pylint: disable=import-outside-toplevel
from bookwyrm.telemetry import open_telemetry
open_telemetry.instrumentDjango()