how to reformat code python code in atom code example
Example: auto indent on save atom
atom.workspace.observeTextEditors (editor) ->
editor.buffer.onWillSave ->
return if editor?.getGrammar()?.scopeName is 'source.coffee'
editor.autoIndentBufferRows 0, editor.getBuffer().getLineCount() - 1