You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running linting with the latest version of nf-core tools (2.11) it automatically changes the formatting in modules.json - changes that Prettier (version 3.1.1, the latest) fails - this is not the case with version 2.10. This is an example of the changes introduced with nf-core lint:
The relevant lines are the three with the intalled_by setting; Prettier wants this to be "installed_by": ["modules"], i.e. on a single line.
I was under the impression that linting wouldn't write any changes unless the --fix flag was also supplied? I tried to see where this was changed, but all I could find was a PR for sorting the modules list (https://github.com/nf-core/tools/pull/2570/files). Not too familiar with the nf-core tools code, so not sure if that's it or something else.
Description of the bug
When running linting with the latest version of nf-core tools (
2.11
) it automatically changes the formatting inmodules.json
- changes that Prettier (version3.1.1
, the latest) fails - this is not the case with version2.10
. This is an example of the changes introduced withnf-core lint
:The relevant lines are the three with the
intalled_by
setting; Prettier wants this to be"installed_by": ["modules"]
, i.e. on a single line.I was under the impression that linting wouldn't write any changes unless the
--fix
flag was also supplied? I tried to see where this was changed, but all I could find was a PR for sorting the modules list (https://github.com/nf-core/tools/pull/2570/files). Not too familiar with the nf-core tools code, so not sure if that's it or something else.Command used and terminal output
This problem persists for e.g. the
nf-core/rnaseq/
pipeline as well - I checked just to make sure it wasn't just the pipeline I was working on.System information
Nextflow: 23.04.4.5881
Hardware: MacBook Pro 2023
Executor: local
OS: MacOS
Version of nf-core/tools: 2.11
Python version: 3.12.1
The text was updated successfully, but these errors were encountered: