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
I've noticed that
blackon my system is folding lines differently to what is in the repo, despite that also being formatted byblack.For example in
base/vectors.pyline 622 wasbut
blacknow formats it likeThere'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
blackwas supposed to be stability and inflexibility.Would appreciate discussion on this. I think there are only 2 options: