Skip to content

Prepended whitespace in trailing comment #706

@VeckoTheGecko

Description

@VeckoTheGecko

version: 0.9.3

Take the following trimmed down pyproject.toml file:

test = [
  "default:Duplicate dimension names present:UserWarning:xarray.namedarray.core",
  "default:::xarray.tests.test_strategies", # test
]

Running the formatter gives:

test = [
  "default:Duplicate dimension names present:UserWarning:xarray.namedarray.core",
  "default:::xarray.tests.test_strategies",                                       # test
]

Playing with the "default:Duplicate dimension names ... line gives different results (differing amount of whitespace, or just correct formatting in some cases).


Search terms:

  • format comment

couldn't find a duplicate :/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions