Skip to main content

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

Project description

Codacy Badge

GitHub repo size GitHub last commit GitHub issues GitHub forks GitHub stars GitHub license

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.4.tar.gz (39.2 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.4-py3-none-any.whl (42.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tabfix_tool-1.2.4.tar.gz
  • Upload date:
  • Size: 39.2 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.4.tar.gz
Algorithm Hash digest
SHA256 d6fb785f6790c7bbe9539097e6b2722389ed6954ff236b901db51c273947a14a
MD5 b96b05f0d543825f827497e9680be5a7
BLAKE2b-256 b8956cef31c9715a3fbc3235caf983030452aa6decc303a3420d019e3da75e7d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: tabfix_tool-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 42.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7d1d490b194eadb340a7babfbbbe77fa75ad6b48568358fa5c6f6e6bffaf9994
MD5 60c61158d64bc4ccc9b96dfd84cefca1
BLAKE2b-256 ed150f5d2f02d2b96c6d4342d1d0e94856ef92310925894fa24821244007f49b

See more details on using hashes here.

Provenance

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