Skip to content

Commit

Permalink
feat: scattergather directive registered (part of #551)
Browse files Browse the repository at this point in the history
  • Loading branch information
iromeo committed Oct 22, 2024
1 parent 55bb395 commit 53d4361
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import com.jetbrains.snakecharm.lang.SnakemakeNames.WORKFLOW_PEPFILE_KEYWORD
import com.jetbrains.snakecharm.lang.SnakemakeNames.WORKFLOW_PEPSCHEMA_KEYWORD
import com.jetbrains.snakecharm.lang.SnakemakeNames.WORKFLOW_REPORT_KEYWORD
import com.jetbrains.snakecharm.lang.SnakemakeNames.WORKFLOW_RESOURCE_SCOPES_KEYWORD
import com.jetbrains.snakecharm.lang.SnakemakeNames.WORKFLOW_SCATTERGATHER_KEYWORD
import com.jetbrains.snakecharm.lang.SnakemakeNames.WORKFLOW_SINGULARITY_KEYWORD
import com.jetbrains.snakecharm.lang.SnakemakeNames.WORKFLOW_WILDCARD_CONSTRAINTS_KEYWORD
import com.jetbrains.snakecharm.lang.SnakemakeNames.WORKFLOW_WORKDIR_KEYWORD
Expand Down Expand Up @@ -106,7 +107,8 @@ object SnakemakeApi {
WORKFLOW_CONTAINERIZED_KEYWORD,
WORKFLOW_PEPSCHEMA_KEYWORD,
WORKFLOW_PEPFILE_KEYWORD,
WORKFLOW_RESOURCE_SCOPES_KEYWORD
WORKFLOW_RESOURCE_SCOPES_KEYWORD,
WORKFLOW_SCATTERGATHER_KEYWORD
)

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ object SnakemakeNames {
const val WORKFLOW_CONTAINER_KEYWORD = "container"
const val WORKFLOW_CONTAINERIZED_KEYWORD = "containerized" // => 6.0.0
const val WORKFLOW_RESOURCE_SCOPES_KEYWORD = "resource_scopes" // => 7.11
const val WORKFLOW_SCATTERGATHER_KEYWORD = "scattergather" // => 7.11

const val SUBWORKFLOW_KEYWORD = "subworkflow"
const val SUBWORKFLOW_WORKDIR_KEYWORD = WORKFLOW_WORKDIR_KEYWORD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Feature: Completion for snakemake keyword-like things
| include |
| workdir |
| wildcard_constraints |
| scattergather |
| onsuccess |
| onstart |
| onerror |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,19 @@ Feature: Inspection for unexpected keyword arguments in section
| section_name |
| container |

Scenario Outline: Expected keyword arguments on top-level in latest language level
Given a snakemake project
Given I open a file "foo.smk" with text
"""
<section_name>: a="foo.bar"
"""
And SmkSectionUnexpectedKeywordArgsInspection inspection is enabled
Then I expect no inspection errors
When I check highlighting errors
Examples:
| section_name |
| scattergather |

Scenario Outline: No warn on expected keyword arguments in subsections when API settings allow
Given a snakemake project
And snakemake framework api yaml descriptor is
Expand Down

0 comments on commit 53d4361

Please sign in to comment.