Skip to main content

No project description provided

Project description

Build Status Coverage pre-commit.ci status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

black_tabby_formatter-0.1.1.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

black_tabby_formatter-0.1.1-py2.py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page