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 20, 2025
1 parent 4e561ec commit 250cda3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pharaoh/assetlib/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import omegaconf
from attrs.validators import deep_iterable, in_, instance_of, min_len

__all__ = ["Resource", "LocalResource", "TransformedResource", "FileResource", "CustomResource"]
__all__ = ["CustomResource", "FileResource", "LocalResource", "Resource", "TransformedResource"]


@attrs.define
Expand Down
2 changes: 1 addition & 1 deletion src/pharaoh/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ def remove_component(
removed = []
components = []
for comp in self.iter_components():
if regex and rex.match(comp["name"]) is not None or comp["name"].lower() == filter:
if (regex and rex.match(comp["name"]) is not None) or comp["name"].lower() == filter:
comp_files = self.sphinx_report_project_components / comp["name"]
if comp_files.exists() and comp_files.is_dir(): # pragma: no cover
shutil.rmtree(comp_files)
Expand Down
2 changes: 1 addition & 1 deletion src/pharaoh/templating/second_level/env_globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def heading(text: str, level: int) -> str:
if len(text) < 2:
msg = "Heading text must be at least 2 characters"
raise ValueError(msg)
return f"{text}\n{character*len(text)}"
return f"{text}\n{character * len(text)}"


def rand_id(chars: int | None = None) -> str:
Expand Down

0 comments on commit 250cda3

Please sign in to comment.