Skip to content

Commit

Permalink
fix: linting of remote snakefiles (#1131)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Aug 13, 2021
1 parent ed8e0c5 commit 2104e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snakemake/linting/snakefiles.py
Expand Up @@ -15,7 +15,7 @@ def item_desc_json(self, snakefile):
return {"snakefile": snakefile}

def read_item(self, snakefile):
return open(snakefile).read()
return self.workflow.sourcecache.open(snakefile).read()

def lint_absolute_paths(self, snakefile, regex=re.compile(ABS_PATH_PATTERN)):
for match in regex.finditer(snakefile):
Expand Down

0 comments on commit 2104e10

Please sign in to comment.