Skip to content

Ruff --preview introduces differences #37

@mikekryjak

Description

@mikekryjak

The CI is set to --preview, which prefers:

        ds["pos"].attrs.update({
            "conversion": 1,
            "units": "m",
            "standard_name": "parallel position",
            "long_name": "Parallel connection length",
        })

over:

        ds["pos"].attrs.update(
            {
                "conversion": 1,
                "units": "m",
                "standard_name": "parallel position",
                "long_name": "Parallel connection length",
            }
        )

I don't have --preview in my local env, which results in formatting inconsistencies, e.g. in #28.
Is there a reason to use --preview? If we took it out, I think we would reduce the chances of conflicts, because probably most users wouldn't think to install the preview version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    github_actionsPull requests that update GitHub Actions code

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions