Skip to content

Commit

Permalink
Format Python code with psf/black push (#345)
Browse files Browse the repository at this point in the history
There appear to be some python formatting errors in
97abfa0. This pull request
uses the [psf/black](https://github.com/psf/black) formatter to fix
these issues.
  • Loading branch information
mzouink authored Nov 15, 2024
2 parents c4a234b + 0d2362c commit 18a0b20
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion tests/fixtures/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,11 @@
unet_3d_distance_run,
hot_distance_run,
)
from .tasks import dummy_task, distance_task, onehot_task, six_onehot_task, hot_distance_task
from .tasks import (
dummy_task,
distance_task,
onehot_task,
six_onehot_task,
hot_distance_task,
)
from .trainers import dummy_trainer, gunpowder_trainer
2 changes: 1 addition & 1 deletion tests/fixtures/runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def distance_run(
num_iterations=10,
)


@pytest.fixture()
def hot_distance_run(
six_class_datasplit,
Expand All @@ -38,7 +39,6 @@ def hot_distance_run(
)



@pytest.fixture()
def dummy_run(
dummy_datasplit,
Expand Down
2 changes: 2 additions & 0 deletions tests/fixtures/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def distance_task():
tol_distance=10,
)


@pytest.fixture()
def hot_distance_task():
yield HotDistanceTaskConfig(
Expand All @@ -44,6 +45,7 @@ def hot_distance_task():
tol_distance=10,
)


@pytest.fixture()
def onehot_task():
yield OneHotTaskConfig(
Expand Down

0 comments on commit 18a0b20

Please sign in to comment.