Skip to content

Commit

Permalink
Fix hide-progress bug
Browse files Browse the repository at this point in the history
Follow on from PR nf-core#2016
  • Loading branch information
ewels committed Nov 15, 2022
1 parent fb80900 commit e509347
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
11 changes: 5 additions & 6 deletions nf_core/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,17 +738,16 @@ def lint(ctx, tool, dir, key, all, fail_warned, local, passed, fix_version): #
try:
module_lint = nf_core.modules.ModuleLint(
dir,
fail_warned,
ctx.obj["modules_repo_url"],
ctx.obj["modules_repo_branch"],
ctx.obj["modules_repo_no_pull"],
ctx.obj["hide_progress"],
fail_warned=fail_warned,
remote_url=ctx.obj["modules_repo_url"],
branch=ctx.obj["modules_repo_branch"],
no_pull=ctx.obj["modules_repo_no_pull"],
hide_progress=ctx.obj["hide_progress"],
)
module_lint.lint(
module=tool,
key=key,
all_modules=all,
hide_progress=ctx.obj["hide_progress"],
print_results=True,
local=local,
show_passed=passed,
Expand Down
7 changes: 6 additions & 1 deletion nf_core/modules/lint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@ def __init__(
hide_progress=False,
):
super().__init__(
"modules", dir=dir, remote_url=remote_url, branch=branch, no_pull=no_pull, hide_progress=hide_progress
"modules",
dir=dir,
remote_url=remote_url,
branch=branch,
no_pull=no_pull,
hide_progress=hide_progress,
)

self.fail_warned = fail_warned
Expand Down

0 comments on commit e509347

Please sign in to comment.