Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'list' object has no attribute 'yaml_add_eol_comment' when nf-core modules lint --fix #3501

Closed
toniher opened this issue Mar 24, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@toniher
Copy link

toniher commented Mar 24, 2025

Description of the bug

When trying to lint-fix a module, I get the following error and it cannot proceed:

 nf-core modules lint --fix interproscan
nf_core/modules/lint/__init__.py:429 in          │
│ update_meta_yml_file
│   426 │   │   │   │   │   │   │   )                                                              │
│   427 │   │   │   │   │   │   │   corrected_meta_yml["output"][i][ch_name][j][element_name][     │
│   428 │   │   │   │   │   │   │   │   "ontologies"                                               │
│ ❱ 429 │   │   │   │   │   │   │   ].yaml_add_eol_comment(f"{edam_formats[ext][1]}", -1)          │
│   430 │   │                                                                                      │
│   431 │   │   # Add bio.tools identifier                                                         │
│   432 │   │   for i, tool in enumerate(corrected_meta_yml["tools"]):                             │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'list' object has no attribute 'yaml_add_eol_comment'

Command used and terminal output

System information

No response

@toniher toniher added the bug Something isn't working label Mar 24, 2025
@toniher toniher self-assigned this Mar 24, 2025
toniher added a commit to toniher/nf-core-tools that referenced this issue Mar 24, 2025
toniher added a commit that referenced this issue Mar 24, 2025
@mirpedrol
Copy link
Member

Done with #3502, thanks!!

@github-project-automation github-project-automation bot moved this from To do to Done in Hackathon March 2025 Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants