Skip to content

A small script that converts the tabs of Python scripts to four spaces to follow the PEP 8 guide or mix tabs and four spaces to sabotage another python script.

Notifications You must be signed in to change notification settings

FIRE-IN-THE-CODE/Indent-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Indent Converter

Build Python

Indent Converter is a small scripted program created to reformat the indentation of other Python scripts converting tabs into four spaces to follow the PEP 8 style guide or mix tabs and four space indents to mess with someone's Python project.

Requirements

Requires Python3 to be installed.

Usage Information

Indent Converter uses a command line interface.
Syntax format: <command> [file name] [option]

Commands:
-h   --help          prints usage information
-m   --mix           mixes  tabs and four spaces for every indent
-r   --repair        reformat the script converting every tab into four spaces

Optional:
-o   --output        sets the argument as the name for the new file

About

A small script that converts the tabs of Python scripts to four spaces to follow the PEP 8 guide or mix tabs and four spaces to sabotage another python script.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages