rochacbruno,
@rochacbruno@social.rochacbruno.com avatar

I wish I could stay on the GOOD line only, but my coworkers decided that we are crossing the EVIL line.
Maybe I am the only one who doesn't own a wide screen display, and maybe I am the only one using font-size 18.


anze3db,
@anze3db@fosstodon.org avatar

@rochacbruno I suggest you add auto-formatting to your CI and your editors. Black will split that long line into 5 lines and make it objectively more readable.

There is also an additional benefit: You and your team will be complaining about Black's poor choices instead of bickering with each other. Much better for team morale 😁

rochacbruno,
@rochacbruno@social.rochacbruno.com avatar

@anze3db we are using Black, but they decided to configure it to 160, that is my problem, I need to read code more often than writing it.

So I would actually need to unformat when reading, then format again when committing, and that would mess with my git tracking.

The accessibility is very bad for me, I really need to use big font sizes so I have to scroll the editor a lot.

anze3db,
@anze3db@fosstodon.org avatar

@rochacbruno if you are using Black than you can add an extra comma after the last parameter and it's going to force Black to split the line into multiple lines.

Also changing Black's line width setting sounds crazy to me. Why Would anyone do this?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • DreamBathrooms
  • everett
  • osvaldo12
  • magazineikmin
  • thenastyranch
  • rosin
  • normalnudes
  • Youngstown
  • Durango
  • slotface
  • ngwrru68w68
  • kavyap
  • mdbf
  • InstantRegret
  • JUstTest
  • ethstaker
  • GTA5RPClips
  • tacticalgear
  • Leos
  • anitta
  • modclub
  • khanakhh
  • cubers
  • cisconetworking
  • provamag3
  • megavids
  • tester
  • lostlight
  • All magazines