Skip to content

Commit 3a655f0

Browse files
committed
Format all files in integrations-core with Ruff as formatter
1 parent 62e6704 commit 3a655f0

File tree

266 files changed

+2049
-2131
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

266 files changed

+2049
-2131
lines changed

aerospike/datadog_checks/aerospike/check.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
class AerospikeCheckV2(OpenMetricsBaseCheckV2):
10-
1110
__NAMESPACE__ = 'aerospike'
1211

1312
DEFAULT_METRIC_LIMIT = 0

airflow/tests/compose/dags/tutorial.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
catchup=False,
4040
tags=["example"],
4141
) as dag:
42-
4342
# t1, t2 and t3 are examples of tasks created by instantiating operators
4443
t1 = BashOperator(
4544
task_id="print_date",

airflow/tests/conftest.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,12 @@ def dd_environment(instance):
4343
build=True,
4444
conditions=[CheckEndpoints(URL + "/api/v1/health", attempts=120)],
4545
):
46-
yield instance, {
47-
'docker_volumes': ['{}/datadog.yaml:/etc/datadog-agent/datadog.yaml'.format(temp_dir)],
48-
}
46+
yield (
47+
instance,
48+
{
49+
'docker_volumes': ['{}/datadog.yaml:/etc/datadog-agent/datadog.yaml'.format(temp_dir)],
50+
},
51+
)
4952

5053

5154
@pytest.fixture(scope='session')

airflow/tests/test_unit.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def test_service_checks_healthy_exp(aggregator, json_resp, expected_healthy_stat
3131
check = AirflowCheck('airflow', common.FULL_CONFIG, [instance])
3232

3333
with mock.patch('datadog_checks.airflow.airflow.AirflowCheck._get_version', return_value=None):
34-
3534
with mock.patch('datadog_checks.base.utils.http.requests') as req:
3635
mock_resp = mock.MagicMock(status_code=200)
3736
mock_resp.json.side_effect = [json_resp]
@@ -60,7 +59,6 @@ def test_service_checks_healthy_stable(
6059
check = AirflowCheck('airflow', common.FULL_CONFIG, [instance])
6160

6261
with mock.patch('datadog_checks.airflow.airflow.AirflowCheck._get_version', return_value='2.6.2'):
63-
6462
with mock.patch('datadog_checks.base.utils.http.requests') as req:
6563
mock_resp = mock.MagicMock(status_code=200)
6664
mock_resp.json.side_effect = [
@@ -100,7 +98,6 @@ def test_dag_task_ongoing_duration(aggregator, task_instance):
10098
check = AirflowCheck('airflow', common.FULL_CONFIG, [instance])
10199

102100
with mock.patch('datadog_checks.airflow.airflow.AirflowCheck._get_version', return_value='2.6.2'):
103-
104101
with mock.patch('datadog_checks.base.utils.http.requests') as req:
105102
mock_resp = mock.MagicMock(status_code=200)
106103
mock_resp.json.side_effect = [

apache/tests/test_apache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_no_metrics_failure(aggregator, check):
3838
check.check(NO_METRIC_CONFIG)
3939

4040
assert str(excinfo.value) == (
41-
"No metrics were fetched for this instance. Make sure that http://localhost:18180 " "is the proper url."
41+
"No metrics were fetched for this instance. Make sure that http://localhost:18180 is the proper url."
4242
)
4343

4444
sc_tags = ['apache_host:localhost', 'port:18180']

arangodb/datadog_checks/arangodb/check.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class ArangodbCheck(OpenMetricsBaseCheckV2, ConfigMixin):
2121
SERVER_TAGS = {'mode': SERVER_MODE_ENDPOINT, 'id': SERVER_ID_ENDPOINT}
2222

2323
def __init__(self, name, init_config, instances):
24-
2524
super(ArangodbCheck, self).__init__(name, init_config, instances)
2625
self.openmetrics_endpoint = self.instance.get('openmetrics_endpoint')
2726
parsed_endpoint = urlparse(self.openmetrics_endpoint)

argo_workflows/tests/test_unit.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ def instance():
9191
],
9292
)
9393
def test_check_with_fixtures(dd_run_check, aggregator, instance, mock_http_response, fixture_file, description):
94-
9594
mock_http_response(file_path=fixture_file)
9695
check = ArgoWorkflowsCheck('argo_workflows', {}, [instance])
9796
dd_run_check(check)
@@ -100,7 +99,6 @@ def test_check_with_fixtures(dd_run_check, aggregator, instance, mock_http_respo
10099
aggregator.assert_metric(f'argo_workflows.{m_name}', metric_type=m_type)
101100

102101
if fixture_file == 'tests/fixtures/metricsv3-6+.txt':
103-
104102
for m_name, m_type in V3_6_METRICS:
105103
aggregator.assert_metric(f'argo_workflows.{m_name}', metric_type=m_type)
106104

aspdotnet/datadog_checks/aspdotnet/aspdotnet.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
class AspdotnetCheck(PDHBaseCheck):
1313
def __new__(cls, name, init_config, instances):
14-
1514
if not is_affirmative(instances[0].get('use_legacy_check_version', False)):
1615
return AspdotnetCheckV2(name, init_config, instances)
1716
else:

aws_neuron/datadog_checks/aws_neuron/check.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class AwsNeuronCheck(OpenMetricsBaseCheckV2):
1111
DEFAULT_METRIC_LIMIT = 0
1212

1313
def __init__(self, name, init_config, instances=None):
14-
1514
super(AwsNeuronCheck, self).__init__(
1615
name,
1716
init_config,

azure_iot_edge/tests/common.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,7 @@
346346

347347
E2E_METRICS = (
348348
# All metrics...
349-
{name for name, _ in MODULE_METRICS}
350-
.union(name for name, _, _ in AGENT_METRICS)
349+
{name for name, _ in MODULE_METRICS}.union(name for name, _, _ in AGENT_METRICS)
351350
.union(name for name, _ in HUB_METRICS)
352351
# ... Except a few that don't get emitted by default.
353352
.difference(

0 commit comments

Comments
 (0)