FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

python-formate/formate-black: Use black with formate. · GitHub

Repository files navigation

formate-black

Use black with formate.

Tests
PyPI
Activity
QA
Other

Installation

formate-black can be installed from PyPI.

To install with pip:

$ python -m pip install formate-black

Hooks

formate-black provides a single hook for formate, which allows the black code formatter to be used.

black

Calls black, using the given keyword arguments as its configuration.

This hook only takes keyword arguments.

The max line length can be provided via the line_length keyword argument or in the config table as line_length.

The indent can also be set to tabs via the use_tabs keyword argument or in the config table as indent.

Example Configuration

[hooks]
reformat-generics = 40
collections-import-rewrite = 20
noqa-reformat = 60
ellipsis-reformat = 70

[hooks.black]
priority = 50

[hooks.black.kwargs]
string_normalization = false
magic_trailing_comma = false

[config]
indent = "\t"
line_length = 115

About

Use black with formate.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL