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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tabfix_tool-1.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 0f87a022f76884b4fe9a37c60685ef749f7909f6584f41ccedf4505ccdd03b7f
MD5 93ca43675dc971a3d2e95fe1ef368124
BLAKE2b-256 7af858f329d8bcafcca9997224b19c11ad86fe79cbd945a90f6ac1bb6abd8170

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: tabfix_tool-1.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 def90de4b7efac901b42570266f78479f3d1260b12cde9ad04eaa7db298fec14
MD5 ede84694ec156125a3543345026a3775
BLAKE2b-256 91e992127a7513b96d4ff870776b0e16c9e164b44afa0ad0d6c5fe4009785e70

See more details on using hashes here.

Provenance

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