From 21e6f3d8fb42b37f72a57ea493fce36b8db7486c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Sep 2024 22:53:45 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/workflows/test.yaml | 1 - tests/test_latent_analysis.py | 2 +- tests/test_lightning_from_config_training.py | 2 +- tests/test_point_cloud_builder.py | 6 +++--- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ab8c5477..7a744ecb 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -38,4 +38,3 @@ jobs: - name: Test with pytest run: | pytest - diff --git a/tests/test_latent_analysis.py b/tests/test_latent_analysis.py index d214866c..04f14f35 100644 --- a/tests/test_latent_analysis.py +++ b/tests/test_latent_analysis.py @@ -6,7 +6,7 @@ from gnn_tracking.analysis.latent import SelectedPidsPlot -@pytest.fixture() +@pytest.fixture def selected_pids_test_data() -> dict[str, np.ndarray]: kwargs = {} for key in ["condensation_space", "input_node_features"]: diff --git a/tests/test_lightning_from_config_training.py b/tests/test_lightning_from_config_training.py index 57c8c95a..10ec6149 100644 --- a/tests/test_lightning_from_config_training.py +++ b/tests/test_lightning_from_config_training.py @@ -22,7 +22,7 @@ def __new__(cls, *args, **kwargs) -> TrackingDataModule: ) -@pytest.mark.slow() +@pytest.mark.slow @pytest.mark.parametrize("config_file", AVAILABLE_CONFIGS) def test_train_from_config(config_file: Path, tmp_path): logger = WandbLogger( diff --git a/tests/test_point_cloud_builder.py b/tests/test_point_cloud_builder.py index 7d517dbe..50f19620 100644 --- a/tests/test_point_cloud_builder.py +++ b/tests/test_point_cloud_builder.py @@ -15,7 +15,7 @@ from .test_data import trackml_test_data_dir -@pytest.fixture() +@pytest.fixture def test_data_files(): hits, particles, truth, cells = simple_data_loader( trackml_test_data_dir / "event000000001" @@ -23,7 +23,7 @@ def test_data_files(): return hits, particles, truth, cells -@pytest.fixture() +@pytest.fixture def point_cloud_builder(): return PointCloudBuilder( outdir="tmp_output/", @@ -43,7 +43,7 @@ def point_cloud_builder(): ) -@pytest.fixture() +@pytest.fixture def point_cloud_builder_pixel(): return PointCloudBuilder( outdir="tmp_output/pixel/",