INNER CODE UNIT · Python
lint_modules
nf-core/tools · nf_core/modules/lint/__init__.py:169
def lint_modules(self, modules: list[NFCoreComponent], local: bool = False, fix_version: bool = False) -> None:
"""
Lint a list of modules
Args:
modules ([NFCoreComponent]): A list of module objects
local (boolean): Whether the list consist of local or nf-core modules
fix_version (boolean): Fix the module version if a newer version is available
"""
# TODO: consider unifying modules and subworkflows lint_modules() function and add it to the ComponentLint class
progress_bar = rich.progress.Progress(
"[bold blue]{task.description}",
rich.progress.BarColumn(bar_width=None),
"[magenta]{task.completed} of {task.total}[reset] » [bold yellow]{task.fields[test_name]}",
transient=True,
console=console,
disable=self.hide_progress or os.environ.get("HIDE_PROGRESS", None) is not None,
)