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 Dec 16, 2024
1 parent 277bf0d commit dedf428
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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

0 comments on commit dedf428

Please sign in to comment.