6 ms·
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 P
by nwatson 8y ago
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?
- dexterdog 8y agoI'm also assuming pycharm has some options. This thing seems to make very specific decisions and if you don't agree with them, tough.
- zepolen 8y agoNot everyone runs PyCharm, and this tool is open source.
- ageitgey 8y agoPyCharm itself is open source. https://github.com/JetBrains/intellij-community/tree/master/python https://github.com/JetBrains/intellij-community/tree/master/...
- philosopherlawr 8y agoYou 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.
- prawl 8y agoYou edit code, test it, and then have some program rewrite your code after testing but before it becomes an immutable commit hash?
- Twirrim 8y agoWhy 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.
- ComputerGuru 8y agoYou’re acting as if it’s inconceivable that there are people that don’t use PyCharm out there....