News for hackers. Stuff that matters.
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?