No project description provided
Project description
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.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file black_tabby_formatter-0.1.1.tar.gz.
File metadata
- Download URL: black_tabby_formatter-0.1.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
362dccdf68b3c26a880af4e11e00365f19cc8a1380ab70d8bb53bca695c54451
|
|
| MD5 |
7c4f61bc1a1154ecadca721207e40d5f
|
|
| BLAKE2b-256 |
9df7c6b6df68767950748a4e80942bc4163086db3dcfcb25f25f30d0ca005495
|
File details
Details for the file black_tabby_formatter-0.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: black_tabby_formatter-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ed565fe7e3795ff6e4c7735522632292220eabe374bcdacf9514464ff7b8d62
|
|
| MD5 |
5b6c15d63ca4f5f7150001224c51d0c2
|
|
| BLAKE2b-256 |
5d4d96b850d8b63a7be1b55e65edcab9e90bc7ee077eefaebb86b759e0cd6bbf
|