Skip to content

clach04/autopep8

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

autopep8 formats Python code based on the output of the pep8 utility.

Installation

from pip:

pip install --upgrade autopep8

from easy_install:

easy_install -ZU autopep8

Requirements

autopep8 requires pep8 (via subprocess).

Usage

execute tool:

$ autopep8 TARGET.py

before:

import sys, os


print 1 


def func1():
    print "A"

    return 0



def func11():
    a = (1,2, 3,"a")
    b = [1, 2, 3,"b"]
    return 1





def func2():
    pass
def func22():
    pass

def func3():
    pass

after:

import sys
import os


print 1


def func1():
    print "A"

    return 0


def func11():
    a = (1, 2, 3, "a")
    b = [1, 2, 3, "b"]
    return 1


def func2():
    pass


def func22():
    pass


def func3():
    pass

About

This is tool, that automatic generated to pep8 checked code.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%