Some surprising, but valid, python syntax examples.

  • verstra@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Yeah, that’s true, auto formatters will always have cases which format weirdly and have a nicer alternative.

    But in the end, the formatting does not matter much, so we all benefit for it being formated one way, and one way only.


    How would you format on git server? Create commits automatically, or ammend commits on push?

    • msage@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I… don’t actually remember. It was a server side hook, I guess it tackled a new commit at the end. But it has been too long ago.

      Nowadays I don’t enforce such strict formatting, I just comment on MRs where I notice transgressions.

      I never liked ammending commits. Had a colleague, team lead, who ammended other peoples commits. Ugh. That’s when I started signing my own work.