Пожалуйста, попробуйте включить его, если у вас возникнут проблемы. Смотрите статистику этого проекта на Libraries. Black is black angus dry aged ribeye uncompromising Python code formatter.
By using it, you agree to cede control over minutiae of hand-formatting. In return, Black gives you speed, determinism, and freedom from pycodestyle nagging about formatting. You will save time and mental energy for more important matters. Blackened code looks the same regardless of the project you’re reading. Formatting becomes transparent after a while and you can focus on the content instead. Black makes code review faster by producing the smallest diffs possible.
Try it out now using the Black Playground. Installation and usage Installation Black can be installed by running pip install black. If you want to format Jupyter Notebooks, install with pip install ‘black’. Black is already successfully used by many projects, small and big.
Black has a comprehensive test suite, with efficient parallel tests, and our own auto formatting and parallel Continuous Integration runner. Now that we have become stable, you should not expect large formatting changes in the future. Stylistic changes will mostly be responses to bug reports and support for new Python syntax. If you’re feeling confident, use –fast. The Black code style Black is a PEP 8 compliant opinionated formatter. Black reformats entire files in place.
Style configuration options are deliberately limited and rarely added. Our documentation covers the current Black code style, but planned changes to it are also documented. Please refer to this document before submitting an issue. What seems like a bug might be intended behaviour. Pragmatism Early versions of Black used to be absolutist in some respects. They took after its initial author. This was fine at the time as it made the implementation simpler and there were not many users anyway.