Skip to content

Commit

Permalink
fix some linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mirpedrol committed Nov 4, 2022
1 parent 29d39fd commit 36df3fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nf_core/subworkflows/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import os

import yaml
from packaging.version import parse as parse_version

import nf_core
import nf_core.components.components_create
Expand Down Expand Up @@ -114,7 +113,7 @@ def create(self):
pytest_modules_yml = dict(sorted(pytest_modules_yml.items()))
with open(os.path.join(self.directory, "tests", "config", "pytest_modules.yml"), "w") as fh:
yaml.dump(pytest_modules_yml, fh, sort_keys=True, Dumper=nf_core.utils.custom_yaml_dumper())
except FileNotFoundError as e:
except FileNotFoundError:
raise UserWarning("Could not open 'tests/config/pytest_modules.yml' file!")

new_files = list(self.file_paths.values())
Expand Down

0 comments on commit 36df3fb

Please sign in to comment.