Skip to content

Commit

Permalink
Chore: Update to Ruff 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Sep 16, 2024
1 parent c883e2e commit 9a55c83
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ develop =
build<2
poethepoet<1
pip-review<2 # Use `pip-review --local --interactive` to upgrade outdated packages.
ruff<0.5;python_version>='3.7'
ruff<0.7;python_version>='3.7'


[options.packages.find]
Expand Down
18 changes: 9 additions & 9 deletions test/elements/test_datasource_base.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
import unittest
from test.elements.test_datasource_fixtures import (
DATAFRAME_RESPONSE_HEALTH_ELASTICSEARCH_VALID,
DATAFRAME_RESPONSE_HEALTH_PROMETHEUS,
ELASTICSEARCH_DATASOURCE,
INFLUXDB1_DATASOURCE,
PERMISSION_DATASOURCE,
PROMETHEUS_DATA_RESPONSE,
PROMETHEUS_DATASOURCE,
)
from unittest.mock import Mock, patch

from grafana_client import GrafanaApi
Expand All @@ -17,6 +8,15 @@
GrafanaServerError,
)
from grafana_client.model import DatasourceIdentifier
from test.elements.test_datasource_fixtures import (
DATAFRAME_RESPONSE_HEALTH_ELASTICSEARCH_VALID,
DATAFRAME_RESPONSE_HEALTH_PROMETHEUS,
ELASTICSEARCH_DATASOURCE,
INFLUXDB1_DATASOURCE,
PERMISSION_DATASOURCE,
PROMETHEUS_DATA_RESPONSE,
PROMETHEUS_DATASOURCE,
)

from ..compat import requests_mock

Expand Down
12 changes: 6 additions & 6 deletions test/elements/test_datasource_health.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import unittest

from parameterized import parameterized

from grafana_client import GrafanaApi
from grafana_client.client import GrafanaClientError, GrafanaServerError
from grafana_client.model import DatasourceHealthResponse, DatasourceIdentifier
from test.elements.test_datasource_fixtures import (
DATAFRAME_RESPONSE_EMPTY,
DATAFRAME_RESPONSE_HEALTH_PROMETHEUS,
Expand All @@ -23,12 +29,6 @@
ZIPKIN_DATASOURCE,
)

from parameterized import parameterized

from grafana_client import GrafanaApi
from grafana_client.client import GrafanaClientError, GrafanaServerError
from grafana_client.model import DatasourceHealthResponse, DatasourceIdentifier

from ..compat import requests_mock


Expand Down
2 changes: 1 addition & 1 deletion test/elements/test_rbac.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest
from test.elements.test_rbac_fixtures import PERMISSION_RBAC_DATASOURCE, RBAC_ROLES_ALL

from grafana_client import GrafanaApi
from test.elements.test_rbac_fixtures import PERMISSION_RBAC_DATASOURCE, RBAC_ROLES_ALL

from ..compat import requests_mock

Expand Down

0 comments on commit 9a55c83

Please sign in to comment.