Skip to content

Commit

Permalink
style: apply automated linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
megalinter-bot committed Jan 8, 2025
1 parent 8a4c4ff commit 3f9942f
Show file tree
Hide file tree
Showing 64 changed files with 76 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import Any

import pytest

from safeds.data.labeled.containers import TabularDataset
from safeds.data.tabular.containers import Table

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.labeled.containers import TabularDataset
from safeds.data.tabular.containers import Table

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import Any

import pytest

from safeds.data.labeled.containers import TimeSeriesDataset
from safeds.data.tabular.containers import Table

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.labeled.containers import TimeSeriesDataset
from safeds.data.tabular.containers import Table

Expand Down
6 changes: 3 additions & 3 deletions tests/safeds/data/labeled/containers/test_image_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down
1 change: 1 addition & 0 deletions tests/safeds/data/tabular/containers/_cell/test_equals.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions tests/safeds/data/tabular/containers/_column/test_eq.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import Any

import pytest

from safeds.data.tabular.containers import Column, Table


Expand Down
1 change: 1 addition & 0 deletions tests/safeds/data/tabular/containers/_column/test_hash.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Column


Expand Down
1 change: 1 addition & 0 deletions tests/safeds/data/tabular/containers/_column/test_init.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import Any

import pytest

from safeds.data.tabular.containers import Column


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Column, Table
from safeds.exceptions import DuplicateColumnError

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Column, Table


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Table


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Table


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pytest
from polars import from_dataframe

from safeds.data.tabular.containers import Table


Expand Down
1 change: 1 addition & 0 deletions tests/safeds/data/tabular/containers/_table/test_eq.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import Any

import pytest

from safeds.data.tabular.containers import Column, Table


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Column, Table
from safeds.exceptions import ColumnLengthMismatchError, DuplicateColumnError

Expand Down
Original file line number Diff line number Diff line change
@@ -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


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import Any

import pytest

from safeds.data.tabular.containers import Table
from safeds.exceptions import ColumnLengthMismatchError

Expand Down
Original file line number Diff line number Diff line change
@@ -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


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Column, Table
from safeds.exceptions import ColumnNotFoundError

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Table


Expand Down
1 change: 1 addition & 0 deletions tests/safeds/data/tabular/containers/_table/test_hash.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Table


Expand Down
1 change: 1 addition & 0 deletions tests/safeds/data/tabular/containers/_table/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Table
from safeds.exceptions import ColumnLengthMismatchError

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Table
from safeds.exceptions import ColumnNotFoundError

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Table
from safeds.exceptions import ColumnNotFoundError

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Table


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Table


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Table


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Table


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Table


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Table
from safeds.exceptions import ColumnNotFoundError, DuplicateColumnError

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Column, Table
from safeds.exceptions import (
ColumnNotFoundError,
Expand Down
1 change: 1 addition & 0 deletions tests/safeds/data/tabular/containers/_table/test_repr.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Table


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import re

import pytest

from safeds.data.tabular.containers import Table


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Table


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Table


Expand Down
1 change: 1 addition & 0 deletions tests/safeds/data/tabular/containers/_table/test_sizeof.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import sys

import pytest

from safeds.data.tabular.containers import Table


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Table
from safeds.exceptions import OutOfBoundsError

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from collections.abc import Callable

import pytest

from safeds.data.tabular.containers import Cell, Row, Table


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Table
from safeds.exceptions import OutOfBoundsError

Expand Down
1 change: 1 addition & 0 deletions tests/safeds/data/tabular/containers/_table/test_str.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Table


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from statistics import stdev

import pytest

from safeds.data.tabular.containers import Table


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Column, Table


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import Any

import pytest

from safeds.data.tabular.containers import Table


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from tempfile import NamedTemporaryFile

import pytest

from safeds.data.tabular.containers import Table
from safeds.exceptions import FileExtensionError

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from safeds.data.tabular.containers import Table
from safeds.exceptions import ColumnNotFoundError

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion tests/safeds/data/tabular/plotting/test_plot_boxplots.py
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions tests/safeds/data/tabular/plotting/test_plot_histogram_2d.py
Original file line number Diff line number Diff line change
@@ -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


Expand Down
Loading

0 comments on commit 3f9942f

Please sign in to comment.