black-tabby-formatter
A tool (and pre-commit hook) to run black, but with tabs instead of spaces.
Installation
$ pip install black-tabby-formatter
Usage as a pre-commit hook (recommended)
See pre-commit for instructions
Sample .pre-commit-config.yaml:
- repo: https://github.com/MarcoGorelli/black-tabby-formatter
rev: v0.1.1
hooks:
- id: black-tabby-formatter
Command-line
black-tabby-formatter file.py
To run on a directory, you can do:
black-tabby-formatter `find . -name "*.py"`
or, using pre-commit,
pre-commit try-repo https://github.com/MarcoGorelli/black-tabby-formatter
.
Configuration
You can pass extra command-line flags that black would normally accept, such as --check. Furthermore, any option you specify
in pyproject.toml will be respected.
Release files for black-tabby-formatter 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| black_tabby_formatter-0.1.1.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| black_tabby_formatter-0.1.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / black_tabby_formatter-0.1.1.tar.gz
| Download URL | black_tabby_formatter-0.1.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
362dccdf68b3c26a880af4e11e00365f19cc8a1380ab70d8bb53bca695c54451
|
|
BLAKE2b-256 checksum How to use checksums |
9df7c6b6df68767950748a4e80942bc4163086db3dcfcb25f25f30d0ca005495
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10
|
Release files / black_tabby_formatter-0.1.1-py2.py3-none-any.whl
| Download URL | black_tabby_formatter-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
3ed565fe7e3795ff6e4c7735522632292220eabe374bcdacf9514464ff7b8d62
|
|
BLAKE2b-256 checksum How to use checksums |
5d4d96b850d8b63a7be1b55e65edcab9e90bc7ee077eefaebb86b759e0cd6bbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10
|