Skip to content

Commit

Permalink
ruff!
Browse files Browse the repository at this point in the history
  • Loading branch information
nvnieuwk committed May 27, 2024
1 parent 7bae122 commit a4ecb70
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions nf_core/components/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ def create(self):
self._get_module_structure_components()

# Add a valid organization name for nf-test tags
not_alphabet = re.compile(r'[^a-zA-Z]')
self.org_alphabet = not_alphabet.sub('', self.org)
not_alphabet = re.compile(r"[^a-zA-Z]")
self.org_alphabet = not_alphabet.sub("", self.org)

# Create component template with jinja2
self._render_template()
Expand Down
4 changes: 2 additions & 2 deletions nf_core/modules/lint/module_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ def module_tests(_, module: NFCoreComponent):
)
# Verify that tags are correct.
main_nf_tags = module._get_main_nf_tags(module.nftest_main_nf)
not_alphabet = re.compile(r'[^a-zA-Z]')
org_alp = not_alphabet.sub('', module.org)
not_alphabet = re.compile(r"[^a-zA-Z]")
org_alp = not_alphabet.sub("", module.org)
org_alphabet = org_alp if org_alp != "" else "nfcore"
required_tags = ["modules", f"modules_{org_alphabet}", module.component_name]
if module.component_name.count("/") == 1:
Expand Down
4 changes: 2 additions & 2 deletions nf_core/subworkflows/lint/subworkflow_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ def subworkflow_tests(_, subworkflow: NFCoreComponent):
)
# Verify that tags are correct.
main_nf_tags = subworkflow._get_main_nf_tags(subworkflow.nftest_main_nf)
not_alphabet = re.compile(r'[^a-zA-Z]')
org_alp = not_alphabet.sub('', subworkflow.org)
not_alphabet = re.compile(r"[^a-zA-Z]")
org_alp = not_alphabet.sub("", subworkflow.org)
org_alphabet = org_alp if org_alp != "" else "nfcore"
required_tags = [
"subworkflows",
Expand Down

0 comments on commit a4ecb70

Please sign in to comment.