Skip to main content

Advanced tool for fixing tab/space indentation with configuration support

Project description

TabFix Tool

Advanced tool for fixing tab/space indentation issues in code files.

Features

  • Fix mixed tabs and spaces indentation
  • Remove trailing whitespace
  • Normalize line endings
  • Handle UTF-8 BOM markers
  • Format JSON files
  • Git integration
  • Progress bars with tqdm
  • Colorful output

Installation

# Install from PyPI
pip install tabfix-tool
# Or directly from GitHub
pip install git+https://github.com/hairpin01/tabfix.git

or via installer

curl https://raw.githubusercontent.com/hairpin01/tabfix/refs/heads/main/src/tabfix/installer.py | python3

[!TIP] to install the unifmt package, see optional

From source

git clone https://github.com/hairpin01/tabfix.git && cd tabfix && pip install -e .

Usage

# Basic usage
tabfix file.py
# Recursive processing
tabfix --recursive src/
# Fix multiple issues
tabfix --all --progress .
# Check without modifying
tabfix --check-mixed --recursive .

install optional unifmt or dev/encoding/full

pip install tabfix-tool[unifmt] # or {optional}

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

tabfix_tool-1.2.3.tar.gz (37.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tabfix_tool-1.2.3-py3-none-any.whl (40.3 kB view details)

Uploaded Python 3

File details

Details for the file tabfix_tool-1.2.3.tar.gz.

File metadata

  • Download URL: tabfix_tool-1.2.3.tar.gz
  • Upload date:
  • Size: 37.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tabfix_tool-1.2.3.tar.gz
Algorithm Hash digest
SHA256 2eae3aa36d932d70ae1bf65443cae8c897f7b8a39b515fb9b81090e320dc5659
MD5 1d407a4635c647e37b9cdffa81f4ef7b
BLAKE2b-256 a58cf395866446979c28026a830f8ded8df68b27402880ad39b5eeb679664e23

See more details on using hashes here.

Provenance

The following attestation bundles were made for tabfix_tool-1.2.3.tar.gz:

Publisher: publish.yml on hairpin01/tabfix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tabfix_tool-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: tabfix_tool-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 40.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tabfix_tool-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 44c474b9e277d5cd3c0d9f8463348b2fdae1906be59b6a1ecd08a7add53962fc
MD5 85d814263aeaea44bd8c7e9f2cb3499f
BLAKE2b-256 65812b120616796c3daba8dabe9985031a30de5f7ef7254e142cc7d62093ef37

See more details on using hashes here.

Provenance

The following attestation bundles were made for tabfix_tool-1.2.3-py3-none-any.whl:

Publisher: publish.yml on hairpin01/tabfix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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