Skip to content

Commit

Permalink
Set isort's formatting profile to black and line length to 88
Browse files Browse the repository at this point in the history
Github actions were failing since isort and ruff had different rules
enabled. Added pyproject.toml configuration to align the two.
  • Loading branch information
salomaestro committed Feb 4, 2025
1 parent 028981e commit df5990d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tool.isort]
profile = "black"
line_length = 88
3 changes: 1 addition & 2 deletions utils/load_data.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from torch.utils.data import Dataset

from .dataloaders import (MNISTDataset0_3, USPSDataset0_6,
USPSH5_Digit_7_9_Dataset)
from .dataloaders import MNISTDataset0_3, USPSDataset0_6, USPSH5_Digit_7_9_Dataset


def load_data(dataset: str, *args, **kwargs) -> Dataset:
Expand Down

0 comments on commit df5990d

Please sign in to comment.