Skip to content

modules.json - inconsistent formatting across functions #4177

@CormacKinsella

Description

@CormacKinsella

Description of the bug

Currently nf-core modules update runs prettier on modules.json, but for example modules patch does not.

For git history this leads to problems with actually viewing the diffs, as git sees it as the entire file being rewritten. Is there a reason for the inconsistent usage of prettier, or could it just be made the default?

Currently dump has a false default:

    def dump(self, run_prettier: bool = False) -> None:

And prettier is selectively run sporadically elsewhere in the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions