Pep8 formatting for malt? #345
Replies: 2 comments 2 replies
-
I think it's a good idea to enforce some kind of auto-formatting, but I'm not sure this is the right one. It seems a bit too opinionated and somewhat inconsistent in some places: I also would bet nobody is doing graphics programming in some kind of legacy terminal with a 79 characters limit. 😅 |
Beta Was this translation helpful? Give feedback.
-
I've been testing the available options and I find all of them do more harm than good. I'd like something that handles things like max line length, trailing whitespaces or blank lines, but still leaves room for the programmer to format their code. yapf has many options but all of them must be enforced in some way or another, you can't just tell the formatter to do nothing in certain cases. So, for now, I'd say just follow the when in Rome, do as the romans rule. |
Beta Was this translation helpful? Give feedback.
-
c34e0b9 I formatted BlenderMalt to follow pep8 standards as a test. You can use VSCode to autoformat your code, there are different options for it, like manual formatting and formatting on save ect. How do you like it? Would that be a good standard to adapt for Malt to save some time manually reformatting code from contributers?
Beta Was this translation helpful? Give feedback.
All reactions