Skip to content

Commit

Permalink
Merge pull request #2243 from mirpedrol/remote-url-when-linting-all
Browse files Browse the repository at this point in the history
Take into accout a provided remote url when linting all modules
  • Loading branch information
mirpedrol committed Apr 21, 2023
2 parents 8c9cc54 + 2cdb158 commit b124e08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions nf_core/modules/lint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b124e08

Please sign in to comment.