If I were starting a project from scratch, I'd start with enforcing black. But most code is written on existing projects, and converting everything to black requires a high degree of confidence and share of agreement within contributors.
What do you think about enabling an option in black to reformat only:
- Code that violates PEP8 / some rules
- Code that has been changed
One of the nice attributes of autopep8 is that it only changes code where there's a problem. This has two big advantages to adoption:
- The impact is limited to strict, unambiguous improvements
- Projects don't require everyone to agree that
autopep8 is the correct tool - an individual / subset can start using it for their contributions
Thanks again for the project
If I were starting a project from scratch, I'd start with enforcing
black. But most code is written on existing projects, and converting everything toblackrequires a high degree of confidence and share of agreement within contributors.What do you think about enabling an option in
blackto reformat only:One of the nice attributes of
autopep8is that it only changes code where there's a problem. This has two big advantages to adoption:autopep8is the correct tool - an individual / subset can start using it for their contributionsThanks again for the project