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
Close
Hashes for black_tabby_formatter-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 362dccdf68b3c26a880af4e11e00365f19cc8a1380ab70d8bb53bca695c54451 |
|
MD5 | 7c4f61bc1a1154ecadca721207e40d5f |
|
BLAKE2b-256 | 9df7c6b6df68767950748a4e80942bc4163086db3dcfcb25f25f30d0ca005495 |
Close
Hashes for black_tabby_formatter-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ed565fe7e3795ff6e4c7735522632292220eabe374bcdacf9514464ff7b8d62 |
|
MD5 | 5b6c15d63ca4f5f7150001224c51d0c2 |
|
BLAKE2b-256 | 5d4d96b850d8b63a7be1b55e65edcab9e90bc7ee077eefaebb86b759e0cd6bbf |