Skip to content

Commit

Permalink
[automated] Fix code linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nf-core-bot committed Oct 23, 2023
1 parent 6c1d270 commit bf77d88
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nf_core/components/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ def _parameter_checks(self, component):

if component is not None and component not in component_names:
component_dir = [dir for dir, m in components if m == component][0]
raise UserWarning(f"{self.component_type[:-1].title()} '{Path(self.component_type, component_dir, module)}' does not exist in the pipeline")
raise UserWarning(
f"{self.component_type[:-1].title()} '{Path(self.component_type, component_dir, module)}' does not exist in the pipeline"
)

def patch(self, component=None):
# Check modules directory structure
Expand Down Expand Up @@ -212,7 +214,9 @@ def remove(self, component):
self.modules_json.remove_patch_entry(component, self.modules_repo.remote_url, component_dir)

if not all(
self.modules_repo.component_files_identical(component, component_path, component_version, self.component_type).values()
self.modules_repo.component_files_identical(
component, component_path, component_version, self.component_type
).values()
):
log.error(
f"Module files do not appear to match the remote for the commit sha in the 'module.json': {component_version}\n"
Expand Down

0 comments on commit bf77d88

Please sign in to comment.