Skip to content

Commit

Permalink
sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoelles committed Dec 2, 2024
1 parent ba8986f commit 46a5f8f
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
12 changes: 5 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,16 @@ pointcloudset = "pointcloudset.io.dataset.commandline:app"
addopts = "-p no:warnings --verbose --color=yes"

[tool.ruff]
# The default line length for Black is 88, but we set it to 120.
# General Ruff settings
line-length = 120
target-version = "py310"

# Allow unused variables when underscore-prefixed.
[tool.ruff.lint]
# Import-related settings moved under [tool.ruff.lint]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"

# Assume Python 3.11.
target-version = "py311"

isort = { known-first-party = ["pointcloudset", "tests"] }

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"pointcloudset/io/dataset/commandline.py" = ["F401"]

Expand Down
6 changes: 3 additions & 3 deletions tests/cli/test_rosbagconvert.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

import pytest
import pytest_check as check
from pointcloudset import Dataset
from pointcloudset.io.dataset.commandline import app
from pyntcloud.io import TO_FILE
from typer.testing import CliRunner

from pyntcloud.io import TO_FILE
from pointcloudset import Dataset
from pointcloudset.io.dataset.commandline import app

TO_FILE_PYNTCLOUD = list(TO_FILE.keys())

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_dataset.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import datetime

import pandas as pd
import numpy as np
import pandas as pd
import pytest
import pytest_check as check
from dask.delayed import DelayedLeaf
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/test_file_io_dataset.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import json
from datetime import datetime
from pathlib import Path
import json

import numpy as np
import pandas as pd
import pytest
import pytest_check as check
from pandas._testing import assert_frame_equal

from pointcloudset import Dataset, PointCloud
from pointcloudset.io.dataset import dir

Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_file_io_dataset_large.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import pytest
import pytest_check as check

from pointcloudset import Dataset


Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_instance_io_pointcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import numpy as np
import open3d as o3d
import pandas as pd
import pytest
import pytest_check as check
from pyntcloud import PyntCloud
import pytest

import pointcloudset
from pointcloudset import PointCloud
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_plane_segmentation.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest
import pytest_check as check

from pointcloudset import PointCloud
from pointcloudset.pointcloud_core import PointCloudCore
import pytest


def test_plane_segmentation_of_open3d(testpointcloud):
Expand Down

0 comments on commit 46a5f8f

Please sign in to comment.