Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 14, 2025
1 parent cbb5240 commit bb2392f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/distilabel/distiset.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,9 @@ def load_from_disk(
)
dest_distiset_path = distiset_path

assert fs.isdir(
original_distiset_path
), "`distiset_path` must be a `PathLike` object pointing to a folder or a URI of a remote filesystem."
assert fs.isdir(original_distiset_path), (
"`distiset_path` must be a `PathLike` object pointing to a folder or a URI of a remote filesystem."
)

has_config = False
has_artifacts = False
Expand Down
2 changes: 1 addition & 1 deletion src/distilabel/steps/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def _infer_step_name(
base_name = "_".join(parts[:-1])
while name in step_names:
idx = int(name.split("_")[-1])
name = f"{base_name}_{idx+1}"
name = f"{base_name}_{idx + 1}"
return name


Expand Down
12 changes: 6 additions & 6 deletions src/distilabel/utils/mkdocs/components_gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,9 @@ def _generate_steps_pages(self, src_dir: Path, steps: list) -> List[str]:
docstring["icon"] = _STEPS_CATEGORY_TO_ICON.get(first_category, "")

if docstring["icon"]:
assert (
docstring["icon"] in _STEPS_CATEGORY_TO_ICON.values()
), f"Icon {docstring['icon']} not found in _STEPS_CATEGORY_TO_ICON"
assert docstring["icon"] in _STEPS_CATEGORY_TO_ICON.values(), (
f"Icon {docstring['icon']} not found in _STEPS_CATEGORY_TO_ICON"
)

name = step["name"]

Expand Down Expand Up @@ -351,9 +351,9 @@ def _generate_tasks_pages(self, src_dir: Path, tasks: list) -> List[str]:
first_category = docstring["categories"][0]
docstring["icon"] = _STEPS_CATEGORY_TO_ICON.get(first_category, "")
if docstring["icon"]:
assert (
docstring["icon"] in _STEPS_CATEGORY_TO_ICON.values()
), f"Icon {docstring['icon']} not found in _STEPS_CATEGORY_TO_ICON"
assert docstring["icon"] in _STEPS_CATEGORY_TO_ICON.values(), (
f"Icon {docstring['icon']} not found in _STEPS_CATEGORY_TO_ICON"
)

name = task["name"]

Expand Down

0 comments on commit bb2392f

Please # to comment.