python-black
Port variant py37
Summary Uncompromising code formatter (PY37)
Package version 20.8b1
Homepage https://github.com/psf/black
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants py38
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 27 AUG 2020, 21:24:25 UTC
Port created 09 APR 2020, 23:39:09 UTC
Subpackage Descriptions
single ![Black Logo]

The Uncompromising Code Formatter

[image] [image] [image] [image] [image] [image] [image] [image] [image]

> “Any color you like.” _Black_ is the 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]. Watch the [PyCon 2019 talk] to learn more. --- _Contents:_ **[Installation and usage]** | **[Code style]** | **[Pragmatism]** | **[pyproject.toml]** | **[Editor integration]** | **[blackd]** | **[black-primer]** | **[Version control integration]** | **[GitHub Actions]** | **[Ignoring unmodified files]** | **[Used by]** | **[Testimonials]** | **[Show your style]** | **[Contributing]** | **[Change log]** | **[Authors]** --- ## Installation and usage ### Installation _Black_ can be installed by running `pip install black`. It requires Python 3.6.0+ to run but you can reformat Python 2 code with it, too. #### Install from GitHub If you can't wait for the latest _hotness_ and want to install from GitHub, use: `pip install git+git://github.com/psf/black` ### Usage To get started right away with sensible defaults: ```sh black {source_file_or_directory} ``` You can run _Black_ as a package if running it as a script doesn't work: ```sh python -m black {source_file_or_directory} ``` ### Command line options _Black_ doesn't provide many options. You can list them by running `black --help`: ```text Usage: black [OPTIONS] [SRC]``` Looks like this: [![Code style: black]](https://github.com/psf/black) ## License MIT ## Contributing to _Black_ In terms of inspiration, _Black_ is about as configurable as _gofmt_. This is deliberate.
Configuration Switches (platform-specific settings discarded)
PY37 ON Build using Python 3.7 PY38 OFF Build using Python 3.8
Package Dependencies by Type
Build and Runtime python-click:single:py37
python-appdirs:single:py37
python-toml:single:py37
python-typed-ast:single:py37
python-regex:single:py37
python-pathspec:single:py37
python-setuptools-scm:single:py37
python37:single:standard
python-setuptools:single:py37
Download groups
main mirror://PYPI/b/black
Distribution File Information
1c02557aa099101b9d21496f8a914e9ed2222ef70336404eeeac8edba836fbea 1096433 black-20.8b1.tar.gz
Ports that require python-black:py37
No other ports depend on this one.