Skip to main content

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

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/tags/v1.0.1/src/tabfix/installer.py | python3

From source

git clone https://github.com/alina/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 .

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.0.0.tar.gz (25.6 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.0.0-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tabfix_tool-1.0.0.tar.gz
  • Upload date:
  • Size: 25.6 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.0.0.tar.gz
Algorithm Hash digest
SHA256 9c440a32e46620925667eabc1b53f6e060df4c6fc27000ae7cbdcc5d30140cf9
MD5 9762993dbb82ed3c55f408726972a3bc
BLAKE2b-256 fdc0566866b76b5120168dc40fb9838ea91d29b14a6ae5c3a91922f89db9e998

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: tabfix_tool-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 25.0 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e507e696d2dd39afc1be4897501dabec69674d99911a7ceed5d9f27b6d065878
MD5 3f2347614a552088bf8a4c2559e4ed1e
BLAKE2b-256 9040ea664204803e5563031fc6f8e830a74b382cd3595c5ee1e7a38596f45bcb

See more details on using hashes here.

Provenance

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