{"action":"created","issue":{"url":"https://api.github.com/repos/DamnWidget/anaconda/issues/420","labels_url":"https://api.github.com/repos/DamnWidget/anaconda/issues/420/labels{/name}","comments_url":"https://api.github.com/repos/DamnWidget/anaconda/issues/420/comments","events_url":"https://api.github.com/repos/DamnWidget/anaconda/issues/420/events","html_url":"https://github.com/DamnWidget/anaconda/issues/420","id":126372945,"number":420,"title":"auto_formatting formats after save instead of before","user":{"login":"txtsd","id":768728,"avatar_url":"https://avatars.githubusercontent.com/u/768728?v=3","gravatar_id":"","url":"https://api.github.com/users/txtsd","html_url":"https://github.com/txtsd","followers_url":"https://api.github.com/users/txtsd/followers","following_url":"https://api.github.com/users/txtsd/following{/other_user}","gists_url":"https://api.github.com/users/txtsd/gists{/gist_id}","starred_url":"https://api.github.com/users/txtsd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/txtsd/subscriptions","organizations_url":"https://api.github.com/users/txtsd/orgs","repos_url":"https://api.github.com/users/txtsd/repos","events_url":"https://api.github.com/users/txtsd/events{/privacy}","received_events_url":"https://api.github.com/users/txtsd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-13T09:09:52Z","updated_at":"2016-01-13T09:58:51Z","closed_at":null,"body":"When I `Ctrl+S`, I expect my file to be formatted and saved, but my file is saved first, and then formatted, requiring me to save again."},"comment":{"url":"https://api.github.com/repos/DamnWidget/anaconda/issues/comments/171237684","html_url":"https://github.com/DamnWidget/anaconda/issues/420#issuecomment-171237684","issue_url":"https://api.github.com/repos/DamnWidget/anaconda/issues/420","id":171237684,"user":{"login":"DamnWidget","id":329766,"avatar_url":"https://avatars.githubusercontent.com/u/329766?v=3","gravatar_id":"","url":"https://api.github.com/users/DamnWidget","html_url":"https://github.com/DamnWidget","followers_url":"https://api.github.com/users/DamnWidget/followers","following_url":"https://api.github.com/users/DamnWidget/following{/other_user}","gists_url":"https://api.github.com/users/DamnWidget/gists{/gist_id}","starred_url":"https://api.github.com/users/DamnWidget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DamnWidget/subscriptions","organizations_url":"https://api.github.com/users/DamnWidget/orgs","repos_url":"https://api.github.com/users/DamnWidget/repos","events_url":"https://api.github.com/users/DamnWidget/events{/privacy}","received_events_url":"https://api.github.com/users/DamnWidget/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T09:58:51Z","updated_at":"2016-01-13T09:58:51Z","body":"Anaconda uses AutoPEP8 (that is a 3rd party dependency) to implement the auto formatting feature, unfortunately autopep8 doesn't accept a string as input but a file in the filesystem, this is why anaconda saves your buffer after format your file.\r\n\r\nI understand that you have enabled the autoformat on save option and that is why you are expecting that behavior. I would like to do some modifications to the overall autoformatting behavior, I will take a look into this issue that you just did rise as well."}}