Skip to content

Commit b839d9c

Browse files
committed
replace isort
1 parent 6656f45 commit b839d9c

File tree

7 files changed

+9
-12
lines changed

7 files changed

+9
-12
lines changed

django_prometheus/tests/end2end/testapp/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import tempfile
33

44
from django import VERSION as DJANGO_VERSION
5+
56
from testapp.helpers import get_middleware
67

78
# SECURITY WARNING: keep the secret key used in production secret!

django_prometheus/tests/end2end/testapp/test_middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import pytest
2-
from testapp.views import ObjectionException
32

43
from django_prometheus.testutils import (
54
assert_metric_diff,
65
assert_metric_equal,
76
save_registry,
87
)
8+
from testapp.views import ObjectionException
99

1010

1111
def M(metric_name):

django_prometheus/tests/end2end/testapp/test_middleware_custom_labels.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import pytest
22
from prometheus_client import REGISTRY
33
from prometheus_client.metrics import MetricWrapperBase
4-
from testapp.helpers import get_middleware
5-
from testapp.test_middleware import M, T
64

75
from django_prometheus.middleware import (
86
Metrics,
97
PrometheusAfterMiddleware,
108
PrometheusBeforeMiddleware,
119
)
1210
from django_prometheus.testutils import assert_metric_diff, save_registry
11+
from testapp.helpers import get_middleware
12+
from testapp.test_middleware import M, T
1313

1414
EXTENDED_METRICS = [
1515
M("requests_latency_seconds_by_view_method"),

django_prometheus/tests/end2end/testapp/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pytest
2-
from testapp.models import Dog, Lawn
32

43
from django_prometheus.testutils import assert_metric_diff, save_registry
4+
from testapp.models import Dog, Lawn
55

66

77
def M(metric_name):

django_prometheus/tests/end2end/testapp/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from django.contrib import admin
22
from django.urls import include, path, re_path
3+
34
from testapp import views
45

56
urlpatterns = [

django_prometheus/tests/end2end/testapp/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from django.http import FileResponse
66
from django.shortcuts import render
77
from django.template.response import TemplateResponse
8+
89
from testapp.models import Lawn
910

1011

pyproject.toml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,11 @@ build-backend = "setuptools.build_meta"
55
[tool.pytest.ini_options]
66
addopts = " --ignore django_prometheus/tests/end2end"
77

8-
[tool.isort]
9-
multi_line_output = 3
10-
line_length = 88
11-
force_grid_wrap = 0
12-
include_trailing_comma = true
13-
148
[tool.ruff]
159
line-length = 120
1610

11+
[tool.ruff.lint]
12+
select = ["I"]
1713

1814
[tool.tox]
1915
legacy_tox_ini = """
@@ -59,14 +55,12 @@ commands =
5955
deps =
6056
flake8
6157
ruff==0.8.2
62-
isort>=5.12.0,<6
6358
flake8-debugger
6459
flake8-2020
6560
flake8-comprehensions
6661
flake8-bugbear
6762
commands =
6863
ruff format --check django_prometheus/
6964
flake8 django_prometheus
70-
isort --check-only django_prometheus/
7165
ruff check django_prometheus/
7266
"""

0 commit comments

Comments
 (0)