Skip to main content

A Python source formatter that uses the tokenize library to ensure correctness

Project description

Introduction

formatter is a Python formatter based on the tokenize library in Python. Due to a bug with line continuations we are currently running a fork of the tokenize library however.

Install

To install simply execute python setup.py install or pip install formatter. If you want to run the tests first, run python setup.py nosetests

Usage

To format all of your code recursively (MAKE BACKUPS!):

formatter -r DIRECTORY

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

formatter-1.0.0.tar.gz (10.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page