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.0.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.0-py3-none-any.whl (40.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tabfix_tool-1.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 5442658e1a2e672e3a5560089a59816431c960a179e050a001c0468518b10a6b
MD5 c40f3e3132cd4ab36d1e216aa5cf7dc1
BLAKE2b-256 6ffe1d42b357bed475688cbd7e29b0bd4ae53acbf1f8070fd79bbdf259c8827a

See more details on using hashes here.

Provenance

The following attestation bundles were made for tabfix_tool-1.2.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: tabfix_tool-1.2.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c1ebd3eec8b34626173f482fa03f32a2b746661affa9e13e0e16c1ec876e7e0
MD5 0196397cfc2b7b927537c141c16190c9
BLAKE2b-256 17cfd0993a67a23c2d62f851fe474febd5c1ee4b99ef9749a813227c80a95040

See more details on using hashes here.

Provenance

The following attestation bundles were made for tabfix_tool-1.2.0-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