Re:Black: An uncompromising Python code formatter
by nwatson on Friday May 25, 2018 @11:49AM
(#17154842)
Maybe I missed it, but I don't see a comparison with PyCharm's built-in code formatter. Why would I integrate this code-formatter, "black", into PyCharm when PyCharm already does this for me and the whole team?
[ Parent
| on HN ]
Re:Black: An uncompromising Python code formatter
by philosopherlawr on Friday May 25, 2018 @12:06PM
(#17155054)
You can run this on pre-commit. While you can set PyCharm to run on file save, it is not guaranteed to run on all files. By using a command line tool, you can enforce that all files across your project are formatted this specific way and never let someone check in something that doesn't conform to it. If you have newbie developers, it can be a lifesaver.
Re:Black: An uncompromising Python code formatter
by prawl on Friday May 25, 2018 @10:39PM
(#17159872)
You edit code, test it, and then have some program rewrite your code after testing but before it becomes an immutable commit hash?
Re:Black: An uncompromising Python code formatter
by Twirrim on Friday May 25, 2018 @03:53PM
(#17157294)
Why do you want your code formatter tied explicitly to an IDE?
Why would you want to force everyone on your team to use the same editor?
Use independent components, and let people use what they work best in.
Re:Black: An uncompromising Python code formatter
by ComputerGuru on Friday May 25, 2018 @04:42PM
(#17157767)
You’re acting as if it’s inconceivable that there are people that don’t use PyCharm out there....
Re:Black: An uncompromising Python code formatter
by zepolen on Friday May 25, 2018 @12:03PM
(#17155024)
Not everyone runs PyCharm, and this tool is open source.
Re:Black: An uncompromising Python code formatter
by ageitgey on Friday May 25, 2018 @02:11PM
(#17156419)
PyCharm itself is open source.
https://github.com/JetBrains/intellij-community/tree/master/...