A code (reformatting) conundrum in Python, and heuristics

(utcc.utoronto.ca)

1 points | by speckx 6 hours ago ago

1 comments

  • zahlman an hour ago

    I don't mind if the editor guesses wrong when I hit Enter and it tries to guess where I want the next line of code to start. I can trivially fix that.

    I don't use a "reformatter" on my Python code, because I already automatically write code with the formatting style I want. But a tool meant for things like converting lists from inline to one-item-per-line, or enforcing a convention for trailing commas, or whatever else like that... should absolutely not be touching the indentation except to enforce 4-space indents.