pep8ify

Cleans your Python code to conform to pep8
Download

pep8ify Ranking & Summary

Advertisement

  • Rating:
  • License:
  • The Apache License 2.0
  • Price:
  • FREE
  • Publisher Name:
  • Steve Pulec
  • Publisher web site:
  • http://github.com/spulec/

pep8ify Tags


pep8ify Description

pep8ify is a Python library that modifies Python source code to conform to pep8.InstallationTo install pep8ify, simply: pip install pep8ifyUsageTo print a diff of changes that pep8ify will make against a particular source file or directory: pep8ify source_folderTo have those changes written to the files: pep8ify -w source_folderBy default, this will create backup files for each file that will be changed. You can add the -n option to not create the backups. Please do not do this if you are not using a version control system. Although this code is well-tested, there are most likely bugs still.For more options about running particular fixers, read the lib2to3 documentation. This library is built on top of that one.FixesA list of the available fixers can be found with the following: pep8ify -lAvailable transformations for the -f/--fix option:blank_linescompound_statementsextraneous_whitespaceimports_on_separate_linesindentationmaximum_line_lengthmissing_newlinemissing_whitespacetabstrailing_blank_linestrailing_whitespacewhitespace_around_operatorwhitespace_before_inline_commentwhitespace_before_parametersAll of these are set to run by default except for 'maximum_line_length'. To run all fixes including 'maximum_line_length', run: pep8ify -f all -f idioms example.pyProduct's homepage


pep8ify Related Software