Skip to content

Commit

Permalink
Merge branch 'feat/linting-nf-schema' of github.com:nvnieuwk/tools in…
Browse files Browse the repository at this point in the history
…to feat/linting-nf-schema
  • Loading branch information
nvnieuwk committed Aug 27, 2024
2 parents aed9460 + 1ff7cbc commit 7612e66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nf_core/pipelines/create/templatefeatures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ nf_schema:
short_description: "Use nf-schema"
description: "Use the nf-schema Nextflow plugin for this pipeline."
help_text: |
nf-schema is used to validate input parameters based on a JSON schema.
[nf-schema](https://nextflow-io.github.io/nf-schema/latest/) is used to validate input parameters based on a JSON schema.
It also provides helper functionality to create help messages, get a summary
of changed parameters and validate and convert a samplesheet to a channel.
nfcore_pipelines: True
Expand Down
8 changes: 4 additions & 4 deletions nf_core/pipelines/lint/plugin_includes.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ def plugin_includes(self) -> Dict[str, List[str]]:
config_plugins = [plugin.split("@")[0] for plugin in ast.literal_eval(self.nf_config.get("plugins", "[]"))]
validation_plugin = "nf-validation" if "nf-validation" in config_plugins else "nf-schema"

passed: list[str] = []
warned: list[str] = []
failed: list[str] = []
ignored: list[str] = []
passed: List[str] = []
warned: List[str] = []
failed: List[str] = []
ignored: List[str] = []

plugin_include_pattern = re.compile(r"^include\s*{[^}]+}\s*from\s*[\"']plugin/([^\"']+)[\"']\s*$", re.MULTILINE)
workflow_files = [
Expand Down

0 comments on commit 7612e66

Please sign in to comment.