Skip to content

Commit f2964f6

Browse files
committed
Run isort
1 parent 5c40dda commit f2964f6

23 files changed

+32
-14
lines changed

django_prometheus/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# `import django_prometheus` will always instantiate all metric
88
# objects right away.
99
import django
10+
1011
from django_prometheus import middleware, models
1112

1213
__all__ = ["middleware", "models", "pip_prometheus"]

django_prometheus/apps.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import django_prometheus
21
from django.apps import AppConfig
32
from django.conf import settings
3+
4+
import django_prometheus
45
from django_prometheus.exports import SetupPrometheusExportsFromConfig
56
from django_prometheus.migrations import ExportMigrations
67

django_prometheus/cache/backends/django_memcached_consul.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from django_memcached_consul import memcached
2+
23
from django_prometheus.cache.metrics import (
34
django_cache_get_total,
45
django_cache_hits_total,

django_prometheus/cache/backends/filebased.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from django.core.cache.backends import filebased
2+
23
from django_prometheus.cache.metrics import (
34
django_cache_get_total,
45
django_cache_hits_total,

django_prometheus/cache/backends/locmem.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from django.core.cache.backends import locmem
2+
23
from django_prometheus.cache.metrics import (
34
django_cache_get_total,
45
django_cache_hits_total,

django_prometheus/cache/backends/memcached.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from django.core.cache.backends import memcached
2+
23
from django_prometheus.cache.metrics import (
34
django_cache_get_total,
45
django_cache_hits_total,

django_prometheus/cache/backends/redis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
from django_redis import cache, exceptions
2+
13
from django_prometheus.cache.metrics import (
24
django_cache_get_fail_total,
35
django_cache_get_total,
46
django_cache_hits_total,
57
django_cache_misses_total,
68
)
7-
from django_redis import cache, exceptions
89

910

1011
class RedisCache(cache.RedisCache):

django_prometheus/db/backends/mysql/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from django.db.backends.mysql import base
2+
23
from django_prometheus.db.common import DatabaseWrapperMixin, ExportingCursorWrapper
34

45

django_prometheus/db/backends/postgis/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import psycopg2.extensions
22
from django.contrib.gis.db.backends.postgis import base
3+
34
from django_prometheus.db.common import DatabaseWrapperMixin, ExportingCursorWrapper
45

56

django_prometheus/db/backends/postgresql/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import psycopg2.extensions
22
from django.db.backends.postgresql import base
3+
34
from django_prometheus.db.common import DatabaseWrapperMixin, ExportingCursorWrapper
45

56

0 commit comments

Comments
 (0)