diff --git a/CHANGELOG.md b/CHANGELOG.md index b41cd517b..6d99e3d11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ - Add an `--empty-template` option to create a module without TODO statements or examples ([#2175](https://github.com/nf-core/tools/pull/2175) & [#2177](https://github.com/nf-core/tools/pull/2177)) - Removed the `nf-core modules mulled` command and all its code dependencies ([2199](https://github.com/nf-core/tools/pull/2199)). +- Take into accout the provided `--git_remote` URL when linting all modules ([2243](https://github.com/nf-core/tools/pull/2243)). ### Subworkflows diff --git a/nf_core/modules/lint/__init__.py b/nf_core/modules/lint/__init__.py index 0f4ece6c4..24d673b1c 100644 --- a/nf_core/modules/lint/__init__.py +++ b/nf_core/modules/lint/__init__.py @@ -91,6 +91,8 @@ def __init__( modules_json.check_up_to_date() self.all_remote_modules = [] for repo_url, components in modules_json.get_all_components(self.component_type).items(): + if remote_url is not None and remote_url != repo_url: + continue for org, comp in components: self.all_remote_modules.append( NFCoreModule(