Use black with formate.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file formate_black-0.2.0.post1.tar.gz
.
File metadata
- Download URL: formate_black-0.2.0.post1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1c27ab65df5e8a243dd5f27385b26964077c351a62bedc49298443943be077c |
|
MD5 | d15ecb220854286f4d2fdb056c58696c |
|
BLAKE2b-256 | f4576955b9318327ca6fd1e559fba00b3578f863fd8ac661e5aea67177bef745 |
File details
Details for the file formate_black-0.2.0.post1-py3-none-any.whl
.
File metadata
- Download URL: formate_black-0.2.0.post1-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f1ee332aeabb25dea85b768442c9ba9eb603f8bf00968af1271ec603bc9f655 |
|
MD5 | 11bb3681a6f0e241d7e31faf50ea969c |
|
BLAKE2b-256 | 07ef8aa206dd39737ed7d7b26701d666695d14100b0cc496ac52d486beeda86b |