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.0
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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93af35b8a6da42fce5891d884791703e77a87df40896ceed7f37a66c3f505988 |
|
MD5 | a6740d409495f6492dd60dd598049e2d |
|
BLAKE2b-256 | c46b6a845cbcce286d387d61038e7b5b5902327360eb894f58d5b1a933840090 |
Close
Hashes for black_tabby_formatter-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 140eb721cd088b4037334a0483ad49b470dcf0d870ad05c33b7feaa1716d2a99 |
|
MD5 | 50bde95822eba2d2ea1c25b0f482e7fd |
|
BLAKE2b-256 | d064f706e6dfb647c5acfca7841ac443f1b9f8b800de26b1a8e9cd81fe2855fa |