Skip to content

Commit 262dea3

Browse files
committed
fix: Add new lint test to lint config pydantic model
1 parent 3dd2e00 commit 262dea3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

nf_core/pipelines/lint/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from nf_core import __version__
2828
from nf_core.components.lint import ComponentLint
2929
from nf_core.pipelines.lint_utils import console
30-
from nf_core.utils import NFCoreYamlConfig, NFCoreYamlLintConfig, strip_ansi_codes
30+
from nf_core.utils import NFCoreYamlLintConfig, strip_ansi_codes
3131
from nf_core.utils import plural_s as _s
3232

3333
from .actions_awsfulltest import actions_awsfulltest

nf_core/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,6 +1244,8 @@ class NFCoreYamlLintConfig(BaseModel):
12441244
""" Lint for version consistency """
12451245
included_configs: Optional[bool] = None
12461246
""" Lint for included configs """
1247+
local_component_structure: Optional[bool] = None
1248+
""" Lint local components use correct structure mirroring remote"""
12471249

12481250
def __getitem__(self, item: str) -> Any:
12491251
return getattr(self, item)

0 commit comments

Comments
 (0)