-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [7.0.0] template_engine: basic support #497
1) highlight template_engine as known section 2) Only one argument expected after `template_engine` 3) Keywords arguments not supported after `template_engine` 4) Do not warn about unused log section if rule wiht `template_engine` 5) `template_engine` is execution section, so could not be with run/shell/notebook/script 6) `template_engine` should be last in the rule 7) no smksl template injection in `template_engine` Resolves: #497
- Loading branch information
Showing
17 changed files
with
142 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/resources/inspectionDescriptions/SmkRuleSectionAfterExecutionInspection.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<html> | ||
<body> | ||
Rule sections such as input/output/params/..., cannot be used after run/shell/script/wrapper/cwl/notebook sections. | ||
Rule sections such as input/output/params/..., cannot be used after run/shell/script/wrapper/cwl/notebook/template_engine sections. | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 13 additions & 29 deletions
42
.../features/highlighting/inspections/execution_subsection_in_use_section_inspection.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,26 @@ | ||
Feature: Inspection if subsection is unexpected for section but it i appropriate for another section | ||
|
||
Scenario: When 'use' section contains execution subsections | ||
Scenario Outline: When 'use' section contains execution subsections | ||
Given a snakemake project | ||
Given I open a file "foo.smk" with text | ||
""" | ||
use rule RULE as NEW_RULE with: | ||
run: "" | ||
shell: "" | ||
notebook: "" | ||
input: "file1" | ||
script: "" | ||
cwl: "" | ||
wrapper: "" | ||
output: "file2" | ||
<section>: "foo" | ||
""" | ||
And SmkExecutionSubsectionInUseSectionInspection inspection is enabled | ||
Then I expect inspection error on <run> with message | ||
Then I expect inspection error on <<section>> with message | ||
""" | ||
Execution sections can't be overridden in 'use rule' | ||
""" | ||
Then I expect inspection error on <shell> with message | ||
""" | ||
Execution sections can't be overridden in 'use rule' | ||
""" | ||
Then I expect inspection error on <notebook> with message | ||
""" | ||
Execution sections can't be overridden in 'use rule' | ||
""" | ||
Then I expect inspection error on <script> with message | ||
""" | ||
Execution sections can't be overridden in 'use rule' | ||
""" | ||
Then I expect inspection error on <cwl> with message | ||
""" | ||
Execution sections can't be overridden in 'use rule' | ||
""" | ||
Then I expect inspection error on <wrapper> with message | ||
""" | ||
Execution sections can't be overridden in 'use rule' | ||
""" | ||
When I check highlighting errors | ||
When I check highlighting errors | ||
Examples: | ||
| section | | ||
| run | | ||
| shell | | ||
| notebook | | ||
| script | | ||
| cwl | | ||
| wrapper | | ||
| template_engine | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.