Skip to content

Commit

Permalink
formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukankaratas committed Jan 22, 2025
1 parent d25f30b commit b0b8140
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 37 deletions.
4 changes: 2 additions & 2 deletions src/specklepy/objects/geometry/arc.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from dataclasses import dataclass
import math
from dataclasses import dataclass

from specklepy.objects.base import Base
from specklepy.objects.geometry.point import Point
from specklepy.objects.geometry.plane import Plane
from specklepy.objects.geometry.point import Point
from specklepy.objects.interfaces import ICurve, IHasUnits


Expand Down
3 changes: 1 addition & 2 deletions src/specklepy/objects/geometry/line.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from dataclasses import dataclass, field
from dataclasses import dataclass

from specklepy.objects.base import Base
from specklepy.objects.geometry.point import Point
from specklepy.objects.interfaces import ICurve, IHasUnits
from specklepy.objects.primitive import Interval


@dataclass(kw_only=True)
Expand Down
2 changes: 1 addition & 1 deletion src/specklepy/objects/geometry/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from specklepy.objects.base import Base
from specklepy.objects.geometry.point import Point
from specklepy.objects.interfaces import IHasArea, IHasVolume, IHasUnits
from specklepy.objects.interfaces import IHasArea, IHasUnits, IHasVolume


@dataclass(kw_only=True)
Expand Down
7 changes: 0 additions & 7 deletions src/specklepy/objects/geometry/point.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
from dataclasses import dataclass
from typing import List, Tuple, Any

from specklepy.objects.base import Base
from specklepy.objects.interfaces import IHasUnits
from specklepy.objects.models.units import (
Units,
get_scale_factor,
get_units_from_string,
get_encoding_from_units
)


@dataclass(kw_only=True)
Expand Down
1 change: 0 additions & 1 deletion src/specklepy/objects/primitive.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from dataclasses import dataclass
from typing import List

from specklepy.objects.base import Base

Expand Down
13 changes: 6 additions & 7 deletions src/specklepy/objects/tests/test_arc.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import math

import pytest
from specklepy.objects.geometry import Arc
from specklepy.objects.geometry import Point
from specklepy.objects.geometry import Plane
from specklepy.objects.geometry import Vector
from specklepy.objects.primitive import Interval

from specklepy.core.api.operations import deserialize, serialize
from specklepy.objects.geometry import Arc, Plane, Point, Vector
from specklepy.objects.models.units import Units
from specklepy.core.api.operations import serialize, deserialize
import math
from specklepy.objects.primitive import Interval


@pytest.fixture
Expand Down
8 changes: 4 additions & 4 deletions src/specklepy/objects/tests/test_line.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import pytest
from specklepy.objects.geometry import Line
from specklepy.objects.geometry import Point
from specklepy.objects.primitive import Interval

from specklepy.core.api.operations import deserialize, serialize
from specklepy.objects.geometry import Line, Point
from specklepy.objects.models.units import Units
from specklepy.core.api.operations import serialize, deserialize
from specklepy.objects.primitive import Interval


@pytest.fixture
Expand Down
3 changes: 2 additions & 1 deletion src/specklepy/objects/tests/test_mesh.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import pytest

from specklepy.core.api.operations import deserialize, serialize
from specklepy.objects.geometry.mesh import Mesh
from specklepy.objects.geometry.point import Point
from specklepy.objects.models.units import Units
from specklepy.core.api.operations import serialize, deserialize


@pytest.fixture
Expand Down
7 changes: 3 additions & 4 deletions src/specklepy/objects/tests/test_plane.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import pytest
from specklepy.objects.geometry import Plane
from specklepy.objects.geometry import Point
from specklepy.objects.geometry import Vector

from specklepy.core.api.operations import deserialize, serialize
from specklepy.objects.geometry import Plane, Point, Vector
from specklepy.objects.models.units import Units
from specklepy.core.api.operations import serialize, deserialize


@pytest.fixture
Expand Down
3 changes: 2 additions & 1 deletion src/specklepy/objects/tests/test_point.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import pytest

from specklepy.core.api.operations import deserialize, serialize
from specklepy.objects.geometry import Point
from specklepy.objects.models.units import Units
from specklepy.core.api.operations import serialize, deserialize


def test_point_creation():
Expand Down
10 changes: 5 additions & 5 deletions src/specklepy/objects/tests/test_polyline.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import pytest
from specklepy.objects.geometry import Polyline
from specklepy.objects.geometry import Point
from specklepy.objects.primitive import Interval

from specklepy.core.api.operations import deserialize, serialize
from specklepy.objects.geometry import Point, Polyline
from specklepy.objects.models.units import Units
from specklepy.core.api.operations import serialize, deserialize
from specklepy.objects.primitive import Interval


@pytest.fixture
Expand Down Expand Up @@ -89,7 +89,7 @@ def test_polyline_get_points(sample_polyline):
]

# Check coordinates match
for actual, expected in zip(points, expected_points):
for actual, expected in zip(points, expected_points, strict=False):
assert actual.x == expected.x
assert actual.y == expected.y
assert actual.z == expected.z
Expand Down
3 changes: 2 additions & 1 deletion src/specklepy/objects/tests/test_vector.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import pytest

from specklepy.core.api.operations import deserialize, serialize
from specklepy.objects.geometry import Vector
from specklepy.objects.models.units import Units
from specklepy.core.api.operations import serialize, deserialize


def test_vector_creation():
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b0b8140

Please sign in to comment.