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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tabfix_tool-1.1.1.tar.gz
  • Upload date:
  • Size: 25.7 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.1.1.tar.gz
Algorithm Hash digest
SHA256 7b10d5c55d06da6edfdc5c9a1a19f380af09099d850682b119effca05f555df0
MD5 81e93d61beb5d5490b4ad5a9322d5b05
BLAKE2b-256 badfdcf79a3c5e105367b113bdad19eb324d2037f9edd41ffe9c4feb8254846f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: tabfix_tool-1.1.1-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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ffc47e98ad2f6e59b3c3fc7d17e77aa2efa515b0bfa96dfb4b429a4263b22cca
MD5 89332b754fd4b8ecf879a5846015dda8
BLAKE2b-256 b0d5812d15593dcc912fbb41b248adeddfb45f5956ca191a25eab70d4594e266

See more details on using hashes here.

Provenance

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