zzzeek,
@zzzeek@hachyderm.io avatar

Pythoners!

is there a linter / flake8 plugin etc for this pattern:

if thing():
return
else:
otherthings()

Where it requires you to write:

if thing():
return
otherthings()

?

_chrismay,
@_chrismay@fosstodon.org avatar
qlp,
@qlp@linh.social avatar

@zzzeek I think I saw Ruff flag some of those when I had it lint through some of my stuff as part of some refactoring and rework that I needed to do.

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