Skip to content

parse container registries from .nf-core.yml#4282

Open
mashehu wants to merge 5 commits into
nf-core:devfrom
mashehu:add-registry-to-nf-core.yml
Open

parse container registries from .nf-core.yml#4282
mashehu wants to merge 5 commits into
nf-core:devfrom
mashehu:add-registry-to-nf-core.yml

Conversation

@mashehu
Copy link
Copy Markdown
Contributor

@mashehu mashehu commented May 12, 2026

Only works in module repos

Also adds a bit more API docs for the different pydantic models

@codecov
Copy link
Copy Markdown

codecov Bot commented May 12, 2026

Codecov Report

❌ Patch coverage is 66.66667% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.33%. Comparing base (b6af91a) to head (0a0cb64).
⚠️ Report is 6 commits behind head on dev.

Files with missing lines Patch % Lines
nf_core/modules/lint/main_nf.py 42.85% 4 Missing ⚠️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.


```yaml
repository_type: pipeline
nf_core_version: "3.2.0"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set to a more recent version?

Suggested change
nf_core_version: "3.2.0"
nf_core_version: "4.0.3"

branch: str | None = None,
no_pull: bool = False,
registry: str | None = None,
registry: str = "quay.io,community.wave.seqera.io/library/",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just pass as tuple[str] directly?
Also be consistent with trailing slashes.

Suggested change
registry: str = "quay.io,community.wave.seqera.io/library/",
registries: tuple[str] = ("quay.io/", "community.wave.seqera.io/library/"),

branch: str | None = None,
no_pull: bool = False,
registry: str | None = None,
registry: str = "quay.io,community.wave.seqera.io/library/",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing the type to tuple[str] would effect this as well.

else:
self.registry = registry
log.debug(f"Registry set to {self.registry}")
def _set_registry(self, registry: str) -> None:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing to registry: tuple[str] would effect this as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants