Skip to content

Changes to black formatting #149

@petercorke

Description

@petercorke

I've noticed that black on my system is folding lines differently to what is in the repo, despite that also being formatted by black.

For example in base/vectors.py line 622 was

@overload
def angdiff(a: ArrayLike, b: ArrayLike) -> NDArray:
    ...

but black now formats it like

@overload
def angdiff(a: ArrayLike, b: ArrayLike) -> NDArray: ...

There's a discussion about this here. I'm using 24.8.0 from Aug 2024. TBH I like the new format better, but this is going to throw a lot cosmetic noise into the commits which is annoying -- the whole point of black was supposed to be stability and inflexibility.

Would appreciate discussion on this. I think there are only 2 options:

  • pin the version of black that all contributors use, impossible to enforce
  • accept that there will be a lot of unnecessary changes for a while until things settle down

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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