From 3f9942f88a6899dfcb8b3481cc5f1b80cb92649d Mon Sep 17 00:00:00 2001 From: megalinter-bot <129584137+megalinter-bot@users.noreply.github.com> Date: Wed, 8 Jan 2025 15:17:13 +0000 Subject: [PATCH] style: apply automated linter fixes --- .../data/labeled/containers/_tabular_dataset/test_eq.py | 1 + .../data/labeled/containers/_tabular_dataset/test_extras.py | 1 + .../data/labeled/containers/_time_series_dataset/test_eq.py | 1 + .../labeled/containers/_time_series_dataset/test_extras.py | 1 + tests/safeds/data/labeled/containers/test_image_dataset.py | 6 +++--- tests/safeds/data/tabular/containers/_cell/test_equals.py | 1 + tests/safeds/data/tabular/containers/_column/test_eq.py | 1 + tests/safeds/data/tabular/containers/_column/test_hash.py | 1 + tests/safeds/data/tabular/containers/_column/test_init.py | 1 + .../data/tabular/containers/_string_cell/test_equals.py | 1 + .../data/tabular/containers/_table/test_add_column.py | 1 + .../data/tabular/containers/_table/test_add_columns.py | 1 + .../data/tabular/containers/_table/test_column_count.py | 1 + .../data/tabular/containers/_table/test_column_names.py | 1 + .../safeds/data/tabular/containers/_table/test_dataframe.py | 1 + tests/safeds/data/tabular/containers/_table/test_eq.py | 1 + .../data/tabular/containers/_table/test_from_columns.py | 1 + .../data/tabular/containers/_table/test_from_csv_file.py | 2 +- .../safeds/data/tabular/containers/_table/test_from_dict.py | 1 + .../data/tabular/containers/_table/test_from_json_file.py | 2 +- .../data/tabular/containers/_table/test_get_column.py | 1 + .../data/tabular/containers/_table/test_has_column.py | 1 + tests/safeds/data/tabular/containers/_table/test_hash.py | 1 + tests/safeds/data/tabular/containers/_table/test_init.py | 1 + .../data/tabular/containers/_table/test_remove_columns.py | 1 + .../tabular/containers/_table/test_remove_columns_except.py | 1 + .../_table/test_remove_columns_with_missing_values.py | 1 + .../tabular/containers/_table/test_remove_duplicate_rows.py | 1 + .../containers/_table/test_remove_non_numeric_columns.py | 1 + .../_table/test_remove_rows_with_missing_values.py | 1 + .../containers/_table/test_remove_rows_with_outliers.py | 1 + .../data/tabular/containers/_table/test_rename_column.py | 1 + .../data/tabular/containers/_table/test_replace_column.py | 1 + tests/safeds/data/tabular/containers/_table/test_repr.py | 1 + .../safeds/data/tabular/containers/_table/test_repr_html.py | 1 + .../safeds/data/tabular/containers/_table/test_row_count.py | 1 + .../data/tabular/containers/_table/test_shuffle_rows.py | 1 + tests/safeds/data/tabular/containers/_table/test_sizeof.py | 1 + .../data/tabular/containers/_table/test_slice_rows.py | 1 + .../safeds/data/tabular/containers/_table/test_sort_rows.py | 1 + .../data/tabular/containers/_table/test_split_rows.py | 1 + tests/safeds/data/tabular/containers/_table/test_str.py | 1 + .../tabular/containers/_table/test_summarize_statistics.py | 1 + .../data/tabular/containers/_table/test_to_columns.py | 1 + .../data/tabular/containers/_table/test_to_csv_file.py | 2 +- tests/safeds/data/tabular/containers/_table/test_to_dict.py | 1 + .../data/tabular/containers/_table/test_to_json_file.py | 1 + .../data/tabular/containers/_table/test_transform_column.py | 1 + .../data/tabular/containers/_table/test_transform_table.py | 1 + .../data/tabular/containers/_temporal_cell/test_equals.py | 1 + tests/safeds/data/tabular/plotting/test_plot_boxplots.py | 3 ++- .../data/tabular/plotting/test_plot_correlation_heatmap.py | 3 ++- .../safeds/data/tabular/plotting/test_plot_histogram_2d.py | 4 ++-- tests/safeds/data/tabular/plotting/test_plot_histograms.py | 3 ++- tests/safeds/data/tabular/plotting/test_plot_lineplot.py | 4 ++-- tests/safeds/data/tabular/plotting/test_plot_scatterplot.py | 3 ++- .../safeds/data/tabular/plotting/test_plot_violin_plots.py | 3 ++- .../safeds/data/tabular/transformation/test_discretizer.py | 1 + tests/safeds/ml/nn/converters/test_input_converter_image.py | 2 +- .../safeds/ml/nn/converters/test_input_converter_image_2.py | 1 + .../ml/nn/converters/test_input_converter_time_series.py | 1 + tests/safeds/ml/nn/layers/test_dropout_layer.py | 3 ++- tests/safeds/ml/nn/layers/test_flatten_layer.py | 3 ++- tests/safeds/ml/nn/layers/test_pooling2d_layer.py | 3 ++- 64 files changed, 76 insertions(+), 19 deletions(-) diff --git a/tests/safeds/data/labeled/containers/_tabular_dataset/test_eq.py b/tests/safeds/data/labeled/containers/_tabular_dataset/test_eq.py index 2f4902cb4..0c1e095e4 100644 --- a/tests/safeds/data/labeled/containers/_tabular_dataset/test_eq.py +++ b/tests/safeds/data/labeled/containers/_tabular_dataset/test_eq.py @@ -1,6 +1,7 @@ from typing import Any import pytest + from safeds.data.labeled.containers import TabularDataset from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/labeled/containers/_tabular_dataset/test_extras.py b/tests/safeds/data/labeled/containers/_tabular_dataset/test_extras.py index 986ca822e..1c380af59 100644 --- a/tests/safeds/data/labeled/containers/_tabular_dataset/test_extras.py +++ b/tests/safeds/data/labeled/containers/_tabular_dataset/test_extras.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.labeled.containers import TabularDataset from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/labeled/containers/_time_series_dataset/test_eq.py b/tests/safeds/data/labeled/containers/_time_series_dataset/test_eq.py index 711582b69..09ed375a1 100644 --- a/tests/safeds/data/labeled/containers/_time_series_dataset/test_eq.py +++ b/tests/safeds/data/labeled/containers/_time_series_dataset/test_eq.py @@ -1,6 +1,7 @@ from typing import Any import pytest + from safeds.data.labeled.containers import TimeSeriesDataset from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/labeled/containers/_time_series_dataset/test_extras.py b/tests/safeds/data/labeled/containers/_time_series_dataset/test_extras.py index 65836bf16..3aae37aaa 100644 --- a/tests/safeds/data/labeled/containers/_time_series_dataset/test_extras.py +++ b/tests/safeds/data/labeled/containers/_time_series_dataset/test_extras.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.labeled.containers import TimeSeriesDataset from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/labeled/containers/test_image_dataset.py b/tests/safeds/data/labeled/containers/test_image_dataset.py index 54ff9ba8c..c38b5fa0b 100644 --- a/tests/safeds/data/labeled/containers/test_image_dataset.py +++ b/tests/safeds/data/labeled/containers/test_image_dataset.py @@ -5,6 +5,9 @@ import pytest import torch +from torch import Tensor +from torch.types import Device + from safeds._config import _get_device from safeds.data.image.containers import ImageList from safeds.data.image.containers._empty_image_list import _EmptyImageList @@ -20,9 +23,6 @@ OutputLengthMismatchError, TransformerNotFittedError, ) -from torch import Tensor -from torch.types import Device - from tests.helpers import ( configure_test_with_device, get_devices, diff --git a/tests/safeds/data/tabular/containers/_cell/test_equals.py b/tests/safeds/data/tabular/containers/_cell/test_equals.py index 59f1540d9..e5f1c01eb 100644 --- a/tests/safeds/data/tabular/containers/_cell/test_equals.py +++ b/tests/safeds/data/tabular/containers/_cell/test_equals.py @@ -2,6 +2,7 @@ import polars as pl import pytest + from safeds.data.tabular.containers import Cell, Table from safeds.data.tabular.containers._lazy_cell import _LazyCell diff --git a/tests/safeds/data/tabular/containers/_column/test_eq.py b/tests/safeds/data/tabular/containers/_column/test_eq.py index a38298e4f..50f32808b 100644 --- a/tests/safeds/data/tabular/containers/_column/test_eq.py +++ b/tests/safeds/data/tabular/containers/_column/test_eq.py @@ -1,6 +1,7 @@ from typing import Any import pytest + from safeds.data.tabular.containers import Column, Table diff --git a/tests/safeds/data/tabular/containers/_column/test_hash.py b/tests/safeds/data/tabular/containers/_column/test_hash.py index 32a18d5ea..8783118b6 100644 --- a/tests/safeds/data/tabular/containers/_column/test_hash.py +++ b/tests/safeds/data/tabular/containers/_column/test_hash.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Column diff --git a/tests/safeds/data/tabular/containers/_column/test_init.py b/tests/safeds/data/tabular/containers/_column/test_init.py index 6fe9331b6..d4c163557 100644 --- a/tests/safeds/data/tabular/containers/_column/test_init.py +++ b/tests/safeds/data/tabular/containers/_column/test_init.py @@ -1,6 +1,7 @@ from typing import Any import pytest + from safeds.data.tabular.containers import Column diff --git a/tests/safeds/data/tabular/containers/_string_cell/test_equals.py b/tests/safeds/data/tabular/containers/_string_cell/test_equals.py index 945a20475..11bff4b38 100644 --- a/tests/safeds/data/tabular/containers/_string_cell/test_equals.py +++ b/tests/safeds/data/tabular/containers/_string_cell/test_equals.py @@ -2,6 +2,7 @@ import polars as pl import pytest + from safeds.data.tabular.containers import StringCell, Table from safeds.data.tabular.containers._lazy_string_cell import _LazyStringCell diff --git a/tests/safeds/data/tabular/containers/_table/test_add_column.py b/tests/safeds/data/tabular/containers/_table/test_add_column.py index 3a1acd7fe..2a12d3407 100644 --- a/tests/safeds/data/tabular/containers/_table/test_add_column.py +++ b/tests/safeds/data/tabular/containers/_table/test_add_column.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Column, Table from safeds.exceptions import DuplicateColumnError diff --git a/tests/safeds/data/tabular/containers/_table/test_add_columns.py b/tests/safeds/data/tabular/containers/_table/test_add_columns.py index 048ec5633..34f757695 100644 --- a/tests/safeds/data/tabular/containers/_table/test_add_columns.py +++ b/tests/safeds/data/tabular/containers/_table/test_add_columns.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Column, Table diff --git a/tests/safeds/data/tabular/containers/_table/test_column_count.py b/tests/safeds/data/tabular/containers/_table/test_column_count.py index 6f9a84c38..ae0719d8a 100644 --- a/tests/safeds/data/tabular/containers/_table/test_column_count.py +++ b/tests/safeds/data/tabular/containers/_table/test_column_count.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/tabular/containers/_table/test_column_names.py b/tests/safeds/data/tabular/containers/_table/test_column_names.py index 1fc87d035..809ad7eec 100644 --- a/tests/safeds/data/tabular/containers/_table/test_column_names.py +++ b/tests/safeds/data/tabular/containers/_table/test_column_names.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/tabular/containers/_table/test_dataframe.py b/tests/safeds/data/tabular/containers/_table/test_dataframe.py index af2336bb1..b5e1d76c9 100644 --- a/tests/safeds/data/tabular/containers/_table/test_dataframe.py +++ b/tests/safeds/data/tabular/containers/_table/test_dataframe.py @@ -1,5 +1,6 @@ import pytest from polars import from_dataframe + from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/tabular/containers/_table/test_eq.py b/tests/safeds/data/tabular/containers/_table/test_eq.py index cf19e069e..ef9bcb116 100644 --- a/tests/safeds/data/tabular/containers/_table/test_eq.py +++ b/tests/safeds/data/tabular/containers/_table/test_eq.py @@ -1,6 +1,7 @@ from typing import Any import pytest + from safeds.data.tabular.containers import Column, Table diff --git a/tests/safeds/data/tabular/containers/_table/test_from_columns.py b/tests/safeds/data/tabular/containers/_table/test_from_columns.py index c7f99ea81..01762699b 100644 --- a/tests/safeds/data/tabular/containers/_table/test_from_columns.py +++ b/tests/safeds/data/tabular/containers/_table/test_from_columns.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Column, Table from safeds.exceptions import ColumnLengthMismatchError, DuplicateColumnError diff --git a/tests/safeds/data/tabular/containers/_table/test_from_csv_file.py b/tests/safeds/data/tabular/containers/_table/test_from_csv_file.py index d367daa01..d8971aa04 100644 --- a/tests/safeds/data/tabular/containers/_table/test_from_csv_file.py +++ b/tests/safeds/data/tabular/containers/_table/test_from_csv_file.py @@ -1,9 +1,9 @@ from pathlib import Path import pytest + from safeds.data.tabular.containers import Table from safeds.exceptions import FileExtensionError - from tests.helpers import resolve_resource_path diff --git a/tests/safeds/data/tabular/containers/_table/test_from_dict.py b/tests/safeds/data/tabular/containers/_table/test_from_dict.py index affc1738e..aa579af2f 100644 --- a/tests/safeds/data/tabular/containers/_table/test_from_dict.py +++ b/tests/safeds/data/tabular/containers/_table/test_from_dict.py @@ -1,6 +1,7 @@ from typing import Any import pytest + from safeds.data.tabular.containers import Table from safeds.exceptions import ColumnLengthMismatchError diff --git a/tests/safeds/data/tabular/containers/_table/test_from_json_file.py b/tests/safeds/data/tabular/containers/_table/test_from_json_file.py index 13c7ac0d8..f884f4b8c 100644 --- a/tests/safeds/data/tabular/containers/_table/test_from_json_file.py +++ b/tests/safeds/data/tabular/containers/_table/test_from_json_file.py @@ -1,9 +1,9 @@ from pathlib import Path import pytest + from safeds.data.tabular.containers import Table from safeds.exceptions import FileExtensionError - from tests.helpers import resolve_resource_path diff --git a/tests/safeds/data/tabular/containers/_table/test_get_column.py b/tests/safeds/data/tabular/containers/_table/test_get_column.py index 25a494275..928e6c2ec 100644 --- a/tests/safeds/data/tabular/containers/_table/test_get_column.py +++ b/tests/safeds/data/tabular/containers/_table/test_get_column.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Column, Table from safeds.exceptions import ColumnNotFoundError diff --git a/tests/safeds/data/tabular/containers/_table/test_has_column.py b/tests/safeds/data/tabular/containers/_table/test_has_column.py index dbf6be77b..cacd180e2 100644 --- a/tests/safeds/data/tabular/containers/_table/test_has_column.py +++ b/tests/safeds/data/tabular/containers/_table/test_has_column.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/tabular/containers/_table/test_hash.py b/tests/safeds/data/tabular/containers/_table/test_hash.py index ce8679fac..ba626061e 100644 --- a/tests/safeds/data/tabular/containers/_table/test_hash.py +++ b/tests/safeds/data/tabular/containers/_table/test_hash.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/tabular/containers/_table/test_init.py b/tests/safeds/data/tabular/containers/_table/test_init.py index 33f8f2384..eeafcb900 100644 --- a/tests/safeds/data/tabular/containers/_table/test_init.py +++ b/tests/safeds/data/tabular/containers/_table/test_init.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table from safeds.exceptions import ColumnLengthMismatchError diff --git a/tests/safeds/data/tabular/containers/_table/test_remove_columns.py b/tests/safeds/data/tabular/containers/_table/test_remove_columns.py index 4ba642ea9..ce2534446 100644 --- a/tests/safeds/data/tabular/containers/_table/test_remove_columns.py +++ b/tests/safeds/data/tabular/containers/_table/test_remove_columns.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table from safeds.exceptions import ColumnNotFoundError diff --git a/tests/safeds/data/tabular/containers/_table/test_remove_columns_except.py b/tests/safeds/data/tabular/containers/_table/test_remove_columns_except.py index 645cbb991..2793e7748 100644 --- a/tests/safeds/data/tabular/containers/_table/test_remove_columns_except.py +++ b/tests/safeds/data/tabular/containers/_table/test_remove_columns_except.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table from safeds.exceptions import ColumnNotFoundError diff --git a/tests/safeds/data/tabular/containers/_table/test_remove_columns_with_missing_values.py b/tests/safeds/data/tabular/containers/_table/test_remove_columns_with_missing_values.py index f0e4d9b7e..4ae52436d 100644 --- a/tests/safeds/data/tabular/containers/_table/test_remove_columns_with_missing_values.py +++ b/tests/safeds/data/tabular/containers/_table/test_remove_columns_with_missing_values.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/tabular/containers/_table/test_remove_duplicate_rows.py b/tests/safeds/data/tabular/containers/_table/test_remove_duplicate_rows.py index a504e738b..c577f17de 100644 --- a/tests/safeds/data/tabular/containers/_table/test_remove_duplicate_rows.py +++ b/tests/safeds/data/tabular/containers/_table/test_remove_duplicate_rows.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/tabular/containers/_table/test_remove_non_numeric_columns.py b/tests/safeds/data/tabular/containers/_table/test_remove_non_numeric_columns.py index e6086c530..7158833dd 100644 --- a/tests/safeds/data/tabular/containers/_table/test_remove_non_numeric_columns.py +++ b/tests/safeds/data/tabular/containers/_table/test_remove_non_numeric_columns.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/tabular/containers/_table/test_remove_rows_with_missing_values.py b/tests/safeds/data/tabular/containers/_table/test_remove_rows_with_missing_values.py index 6ae3b4747..a30bbf9a7 100644 --- a/tests/safeds/data/tabular/containers/_table/test_remove_rows_with_missing_values.py +++ b/tests/safeds/data/tabular/containers/_table/test_remove_rows_with_missing_values.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/tabular/containers/_table/test_remove_rows_with_outliers.py b/tests/safeds/data/tabular/containers/_table/test_remove_rows_with_outliers.py index ad55d3a8e..180e2e756 100644 --- a/tests/safeds/data/tabular/containers/_table/test_remove_rows_with_outliers.py +++ b/tests/safeds/data/tabular/containers/_table/test_remove_rows_with_outliers.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/tabular/containers/_table/test_rename_column.py b/tests/safeds/data/tabular/containers/_table/test_rename_column.py index 25c0de50d..80217c667 100644 --- a/tests/safeds/data/tabular/containers/_table/test_rename_column.py +++ b/tests/safeds/data/tabular/containers/_table/test_rename_column.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table from safeds.exceptions import ColumnNotFoundError, DuplicateColumnError diff --git a/tests/safeds/data/tabular/containers/_table/test_replace_column.py b/tests/safeds/data/tabular/containers/_table/test_replace_column.py index 0c1e304dc..38e4be07c 100644 --- a/tests/safeds/data/tabular/containers/_table/test_replace_column.py +++ b/tests/safeds/data/tabular/containers/_table/test_replace_column.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Column, Table from safeds.exceptions import ( ColumnNotFoundError, diff --git a/tests/safeds/data/tabular/containers/_table/test_repr.py b/tests/safeds/data/tabular/containers/_table/test_repr.py index bd2e70614..f811cd689 100644 --- a/tests/safeds/data/tabular/containers/_table/test_repr.py +++ b/tests/safeds/data/tabular/containers/_table/test_repr.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/tabular/containers/_table/test_repr_html.py b/tests/safeds/data/tabular/containers/_table/test_repr_html.py index 8b25de38c..c272d04d6 100644 --- a/tests/safeds/data/tabular/containers/_table/test_repr_html.py +++ b/tests/safeds/data/tabular/containers/_table/test_repr_html.py @@ -1,6 +1,7 @@ import re import pytest + from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/tabular/containers/_table/test_row_count.py b/tests/safeds/data/tabular/containers/_table/test_row_count.py index c9932b13a..4adf0c71e 100644 --- a/tests/safeds/data/tabular/containers/_table/test_row_count.py +++ b/tests/safeds/data/tabular/containers/_table/test_row_count.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/tabular/containers/_table/test_shuffle_rows.py b/tests/safeds/data/tabular/containers/_table/test_shuffle_rows.py index ffc1a3eb2..616c9044f 100644 --- a/tests/safeds/data/tabular/containers/_table/test_shuffle_rows.py +++ b/tests/safeds/data/tabular/containers/_table/test_shuffle_rows.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/tabular/containers/_table/test_sizeof.py b/tests/safeds/data/tabular/containers/_table/test_sizeof.py index de3a44d2c..0f9bb8c27 100644 --- a/tests/safeds/data/tabular/containers/_table/test_sizeof.py +++ b/tests/safeds/data/tabular/containers/_table/test_sizeof.py @@ -1,6 +1,7 @@ import sys import pytest + from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/tabular/containers/_table/test_slice_rows.py b/tests/safeds/data/tabular/containers/_table/test_slice_rows.py index e3ea672ee..c9ce9035f 100644 --- a/tests/safeds/data/tabular/containers/_table/test_slice_rows.py +++ b/tests/safeds/data/tabular/containers/_table/test_slice_rows.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table from safeds.exceptions import OutOfBoundsError diff --git a/tests/safeds/data/tabular/containers/_table/test_sort_rows.py b/tests/safeds/data/tabular/containers/_table/test_sort_rows.py index 95fc75a98..897e305da 100644 --- a/tests/safeds/data/tabular/containers/_table/test_sort_rows.py +++ b/tests/safeds/data/tabular/containers/_table/test_sort_rows.py @@ -1,6 +1,7 @@ from collections.abc import Callable import pytest + from safeds.data.tabular.containers import Cell, Row, Table diff --git a/tests/safeds/data/tabular/containers/_table/test_split_rows.py b/tests/safeds/data/tabular/containers/_table/test_split_rows.py index c93c5b543..72d0b449c 100644 --- a/tests/safeds/data/tabular/containers/_table/test_split_rows.py +++ b/tests/safeds/data/tabular/containers/_table/test_split_rows.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table from safeds.exceptions import OutOfBoundsError diff --git a/tests/safeds/data/tabular/containers/_table/test_str.py b/tests/safeds/data/tabular/containers/_table/test_str.py index 2e6412c49..3c2306fd6 100644 --- a/tests/safeds/data/tabular/containers/_table/test_str.py +++ b/tests/safeds/data/tabular/containers/_table/test_str.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/tabular/containers/_table/test_summarize_statistics.py b/tests/safeds/data/tabular/containers/_table/test_summarize_statistics.py index 9d2e5fb82..eaf8390d7 100644 --- a/tests/safeds/data/tabular/containers/_table/test_summarize_statistics.py +++ b/tests/safeds/data/tabular/containers/_table/test_summarize_statistics.py @@ -1,6 +1,7 @@ from statistics import stdev import pytest + from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/tabular/containers/_table/test_to_columns.py b/tests/safeds/data/tabular/containers/_table/test_to_columns.py index 67a28934f..20c7b9532 100644 --- a/tests/safeds/data/tabular/containers/_table/test_to_columns.py +++ b/tests/safeds/data/tabular/containers/_table/test_to_columns.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Column, Table diff --git a/tests/safeds/data/tabular/containers/_table/test_to_csv_file.py b/tests/safeds/data/tabular/containers/_table/test_to_csv_file.py index 12f57bb3c..db5d54615 100644 --- a/tests/safeds/data/tabular/containers/_table/test_to_csv_file.py +++ b/tests/safeds/data/tabular/containers/_table/test_to_csv_file.py @@ -2,9 +2,9 @@ from tempfile import NamedTemporaryFile import pytest + from safeds.data.tabular.containers import Table from safeds.exceptions import FileExtensionError - from tests.helpers import resolve_resource_path diff --git a/tests/safeds/data/tabular/containers/_table/test_to_dict.py b/tests/safeds/data/tabular/containers/_table/test_to_dict.py index b6f7e16f0..55f249051 100644 --- a/tests/safeds/data/tabular/containers/_table/test_to_dict.py +++ b/tests/safeds/data/tabular/containers/_table/test_to_dict.py @@ -1,6 +1,7 @@ from typing import Any import pytest + from safeds.data.tabular.containers import Table diff --git a/tests/safeds/data/tabular/containers/_table/test_to_json_file.py b/tests/safeds/data/tabular/containers/_table/test_to_json_file.py index d0ce65dd9..4569fc185 100644 --- a/tests/safeds/data/tabular/containers/_table/test_to_json_file.py +++ b/tests/safeds/data/tabular/containers/_table/test_to_json_file.py @@ -2,6 +2,7 @@ from tempfile import NamedTemporaryFile import pytest + from safeds.data.tabular.containers import Table from safeds.exceptions import FileExtensionError diff --git a/tests/safeds/data/tabular/containers/_table/test_transform_column.py b/tests/safeds/data/tabular/containers/_table/test_transform_column.py index 3695efd5c..9ce90cde3 100644 --- a/tests/safeds/data/tabular/containers/_table/test_transform_column.py +++ b/tests/safeds/data/tabular/containers/_table/test_transform_column.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table from safeds.exceptions import ColumnNotFoundError diff --git a/tests/safeds/data/tabular/containers/_table/test_transform_table.py b/tests/safeds/data/tabular/containers/_table/test_transform_table.py index 542953aca..fc12cfb76 100644 --- a/tests/safeds/data/tabular/containers/_table/test_transform_table.py +++ b/tests/safeds/data/tabular/containers/_table/test_transform_table.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table from safeds.data.tabular.transformation import OneHotEncoder from safeds.exceptions import ColumnNotFoundError, TransformerNotFittedError diff --git a/tests/safeds/data/tabular/containers/_temporal_cell/test_equals.py b/tests/safeds/data/tabular/containers/_temporal_cell/test_equals.py index 4f40887c2..1dfc9e181 100644 --- a/tests/safeds/data/tabular/containers/_temporal_cell/test_equals.py +++ b/tests/safeds/data/tabular/containers/_temporal_cell/test_equals.py @@ -2,6 +2,7 @@ import polars as pl import pytest + from safeds.data.tabular.containers import Table, TemporalCell from safeds.data.tabular.containers._lazy_temporal_cell import _LazyTemporalCell diff --git a/tests/safeds/data/tabular/plotting/test_plot_boxplots.py b/tests/safeds/data/tabular/plotting/test_plot_boxplots.py index e5189404f..e8c26a923 100644 --- a/tests/safeds/data/tabular/plotting/test_plot_boxplots.py +++ b/tests/safeds/data/tabular/plotting/test_plot_boxplots.py @@ -1,7 +1,8 @@ import pytest +from syrupy import SnapshotAssertion + from safeds.data.tabular.containers import Table from safeds.exceptions import NonNumericColumnError -from syrupy import SnapshotAssertion @pytest.mark.parametrize( diff --git a/tests/safeds/data/tabular/plotting/test_plot_correlation_heatmap.py b/tests/safeds/data/tabular/plotting/test_plot_correlation_heatmap.py index 235337414..bc706a0cf 100644 --- a/tests/safeds/data/tabular/plotting/test_plot_correlation_heatmap.py +++ b/tests/safeds/data/tabular/plotting/test_plot_correlation_heatmap.py @@ -1,7 +1,8 @@ import pytest -from safeds.data.tabular.containers import Table from syrupy import SnapshotAssertion +from safeds.data.tabular.containers import Table + @pytest.mark.parametrize( "table", diff --git a/tests/safeds/data/tabular/plotting/test_plot_histogram_2d.py b/tests/safeds/data/tabular/plotting/test_plot_histogram_2d.py index a0c34d933..0f5e0f2c3 100644 --- a/tests/safeds/data/tabular/plotting/test_plot_histogram_2d.py +++ b/tests/safeds/data/tabular/plotting/test_plot_histogram_2d.py @@ -1,8 +1,8 @@ import pytest -from safeds.data.tabular.containers import Table -from safeds.exceptions import ColumnNotFoundError, ColumnTypeError, OutOfBoundsError from syrupy import SnapshotAssertion +from safeds.data.tabular.containers import Table +from safeds.exceptions import ColumnNotFoundError, ColumnTypeError, OutOfBoundsError from tests.helpers import os_mac, skip_if_os diff --git a/tests/safeds/data/tabular/plotting/test_plot_histograms.py b/tests/safeds/data/tabular/plotting/test_plot_histograms.py index e5953e361..b18927a6b 100644 --- a/tests/safeds/data/tabular/plotting/test_plot_histograms.py +++ b/tests/safeds/data/tabular/plotting/test_plot_histograms.py @@ -1,7 +1,8 @@ import pytest -from safeds.data.tabular.containers import Table from syrupy import SnapshotAssertion +from safeds.data.tabular.containers import Table + @pytest.mark.parametrize( "table", diff --git a/tests/safeds/data/tabular/plotting/test_plot_lineplot.py b/tests/safeds/data/tabular/plotting/test_plot_lineplot.py index 71ff05cf3..d79644b1a 100644 --- a/tests/safeds/data/tabular/plotting/test_plot_lineplot.py +++ b/tests/safeds/data/tabular/plotting/test_plot_lineplot.py @@ -1,8 +1,8 @@ import pytest -from safeds.data.tabular.containers import Table -from safeds.exceptions import ColumnNotFoundError from syrupy import SnapshotAssertion +from safeds.data.tabular.containers import Table +from safeds.exceptions import ColumnNotFoundError from tests.helpers import os_mac, skip_if_os diff --git a/tests/safeds/data/tabular/plotting/test_plot_scatterplot.py b/tests/safeds/data/tabular/plotting/test_plot_scatterplot.py index 125b1f696..97f344a48 100644 --- a/tests/safeds/data/tabular/plotting/test_plot_scatterplot.py +++ b/tests/safeds/data/tabular/plotting/test_plot_scatterplot.py @@ -1,7 +1,8 @@ import pytest +from syrupy import SnapshotAssertion + from safeds.data.tabular.containers import Table from safeds.exceptions import ColumnNotFoundError, ColumnTypeError -from syrupy import SnapshotAssertion @pytest.mark.parametrize( diff --git a/tests/safeds/data/tabular/plotting/test_plot_violin_plots.py b/tests/safeds/data/tabular/plotting/test_plot_violin_plots.py index 615cc0487..bb8527dd3 100644 --- a/tests/safeds/data/tabular/plotting/test_plot_violin_plots.py +++ b/tests/safeds/data/tabular/plotting/test_plot_violin_plots.py @@ -1,7 +1,8 @@ import pytest +from syrupy import SnapshotAssertion + from safeds.data.tabular.containers import Table from safeds.exceptions import NonNumericColumnError -from syrupy import SnapshotAssertion @pytest.mark.parametrize( diff --git a/tests/safeds/data/tabular/transformation/test_discretizer.py b/tests/safeds/data/tabular/transformation/test_discretizer.py index 9e1626ec3..703f845e1 100644 --- a/tests/safeds/data/tabular/transformation/test_discretizer.py +++ b/tests/safeds/data/tabular/transformation/test_discretizer.py @@ -1,4 +1,5 @@ import pytest + from safeds.data.tabular.containers import Table from safeds.data.tabular.transformation import Discretizer from safeds.exceptions import ( diff --git a/tests/safeds/ml/nn/converters/test_input_converter_image.py b/tests/safeds/ml/nn/converters/test_input_converter_image.py index bafeb4065..07f3fcad6 100644 --- a/tests/safeds/ml/nn/converters/test_input_converter_image.py +++ b/tests/safeds/ml/nn/converters/test_input_converter_image.py @@ -1,12 +1,12 @@ import sys import pytest + from safeds.data.image.containers import ImageList from safeds.data.image.typing import ImageSize from safeds.data.labeled.containers import ImageDataset from safeds.data.tabular.containers import Column, Table from safeds.ml.nn.converters import InputConversionImageToImage - from tests.helpers import images_all, resolve_resource_path _test_image_list = ImageList.from_files(resolve_resource_path(images_all())).resize(10, 10) diff --git a/tests/safeds/ml/nn/converters/test_input_converter_image_2.py b/tests/safeds/ml/nn/converters/test_input_converter_image_2.py index f0dde8ba1..199e82855 100644 --- a/tests/safeds/ml/nn/converters/test_input_converter_image_2.py +++ b/tests/safeds/ml/nn/converters/test_input_converter_image_2.py @@ -2,6 +2,7 @@ import pytest import torch + from safeds.data.image.containers._multi_size_image_list import _MultiSizeImageList from safeds.data.image.containers._single_size_image_list import _SingleSizeImageList from safeds.data.image.typing import ImageSize diff --git a/tests/safeds/ml/nn/converters/test_input_converter_time_series.py b/tests/safeds/ml/nn/converters/test_input_converter_time_series.py index b501d3519..7e2d8f1b6 100644 --- a/tests/safeds/ml/nn/converters/test_input_converter_time_series.py +++ b/tests/safeds/ml/nn/converters/test_input_converter_time_series.py @@ -1,6 +1,7 @@ import sys import pytest + from safeds.data.tabular.containers import Table from safeds.ml.nn import ( NeuralNetworkRegressor, diff --git a/tests/safeds/ml/nn/layers/test_dropout_layer.py b/tests/safeds/ml/nn/layers/test_dropout_layer.py index 9c94ca45c..1988a5549 100644 --- a/tests/safeds/ml/nn/layers/test_dropout_layer.py +++ b/tests/safeds/ml/nn/layers/test_dropout_layer.py @@ -1,11 +1,12 @@ import sys import pytest +from torch import nn + from safeds.data.tabular.containers import Table from safeds.exceptions import OutOfBoundsError from safeds.ml.nn.layers import DropoutLayer from safeds.ml.nn.typing import ConstantImageSize -from torch import nn class TestProbability: diff --git a/tests/safeds/ml/nn/layers/test_flatten_layer.py b/tests/safeds/ml/nn/layers/test_flatten_layer.py index dcb463522..6e16d7cb5 100644 --- a/tests/safeds/ml/nn/layers/test_flatten_layer.py +++ b/tests/safeds/ml/nn/layers/test_flatten_layer.py @@ -1,11 +1,12 @@ import sys import pytest +from torch import nn + from safeds.data.image.typing import ImageSize from safeds.data.tabular.containers import Table from safeds.ml.nn.layers import FlattenLayer from safeds.ml.nn.typing import VariableImageSize -from torch import nn class TestFlattenLayer: diff --git a/tests/safeds/ml/nn/layers/test_pooling2d_layer.py b/tests/safeds/ml/nn/layers/test_pooling2d_layer.py index ecd38e0c0..08f2048b5 100644 --- a/tests/safeds/ml/nn/layers/test_pooling2d_layer.py +++ b/tests/safeds/ml/nn/layers/test_pooling2d_layer.py @@ -2,11 +2,12 @@ from typing import Literal import pytest +from torch import nn + from safeds.data.image.typing import ImageSize from safeds.data.tabular.containers import Table from safeds.ml.nn.layers import AveragePooling2DLayer, MaxPooling2DLayer from safeds.ml.nn.layers._pooling2d_layer import _Pooling2DLayer -from torch import nn class TestPooling2DLayer: