The Murphthemurph.hashnode.dev·Aug 3, 2023Configure Black in PycharmBlack is an uncompromising opinionated formatter for Python. The formatter is widely used in the industry and unlike many formatters, especially those in the JavaScript world, it doesn't have very many overrides available. One of the main overrides y...Discuss·177 readsPython
Fullchee Zhangfullchee.hashnode.dev·Jul 21, 2023Python Splatting *("-s", "1")Why do something like this? subprocess.check_call( ( "git", *("-c", "protocol.version=2") *("--depth", "1"), ) ) Because the black formatter will format it like this which is less readable subprocess.check_call( (...Discuss·41 readsPython
Fumbani Bandafumbani.hashnode.dev·Dec 8, 2022Format Python Code with BlackFor the past few days, I have made 2 pull requests to an open-source project. This was a great experience considering these are my baby steps in contributing to open-source projects. One of the new things I learned from the experience was using black...Discuss·2 likes·133 readsblack