diff --git a/nf_core/components/create.py b/nf_core/components/create.py index e603db3857..78c30b5179 100644 --- a/nf_core/components/create.py +++ b/nf_core/components/create.py @@ -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() diff --git a/nf_core/modules/lint/module_tests.py b/nf_core/modules/lint/module_tests.py index 080fc2bdc8..4bf4ea7745 100644 --- a/nf_core/modules/lint/module_tests.py +++ b/nf_core/modules/lint/module_tests.py @@ -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: diff --git a/nf_core/subworkflows/lint/subworkflow_tests.py b/nf_core/subworkflows/lint/subworkflow_tests.py index 87e850e8fb..fe7b40407a 100644 --- a/nf_core/subworkflows/lint/subworkflow_tests.py +++ b/nf_core/subworkflows/lint/subworkflow_tests.py @@ -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",