Skip to content

Commit

Permalink
implemented suggestions by @sven1103
Browse files Browse the repository at this point in the history
  • Loading branch information
remiolsen committed Mar 19, 2018
1 parent 71949cc commit 589ca66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nf_core/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def pf(file_path):
files = [files]
if any([os.path.isfile(pf(f)) for f in files]):
self.passed.append((1, "File found: {}".format(files)))
self.files.append(files)
self.files.extend(files)
else:
self.failed.append((1, "File not found: {}".format(files)))

Expand All @@ -114,7 +114,7 @@ def pf(file_path):
files = [files]
if any([os.path.isfile(pf(f)) for f in files]):
self.passed.append((1, "File found: {}".format(files)))
self.files.append(files)
self.files.extend(files)
else:
self.warned.append((1, "File not found: {}".format(files)))

Expand Down Expand Up @@ -270,7 +270,7 @@ def check_readme(self):
nf_config_version = self.config.get('params.nf_required_version').strip('\'"')
try:
assert nf_badge_version == nf_config_version
except (AssertionError, KeyError) as e:
except (AssertionError, KeyError):
self.failed.append((6, "README Nextflow minimum version badge does not match config. Badge: '{}', Config: '{}'".format(nf_badge_version, nf_config_version)))
else:
self.passed.append((6, "README Nextflow minimum version badge matched config. Badge: '{}', Config: '{}'".format(nf_badge_version, nf_config_version)))
Expand Down

0 comments on commit 589ca66

Please sign in to comment.