{"action":"created","issue":{"url":"https://api.github.com/repos/hhatto/autopep8/issues/198","labels_url":"https://api.github.com/repos/hhatto/autopep8/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/hhatto/autopep8/issues/198/comments","events_url":"https://api.github.com/repos/hhatto/autopep8/issues/198/events","html_url":"https://github.com/hhatto/autopep8/issues/198","id":63831459,"number":198,"title":"Formatting code fragments: assume the first line is indented correctly","user":{"login":"kiryph","id":371756,"avatar_url":"https://avatars.githubusercontent.com/u/371756?v=3","gravatar_id":"","url":"https://api.github.com/users/kiryph","html_url":"https://github.com/kiryph","followers_url":"https://api.github.com/users/kiryph/followers","following_url":"https://api.github.com/users/kiryph/following{/other_user}","gists_url":"https://api.github.com/users/kiryph/gists{/gist_id}","starred_url":"https://api.github.com/users/kiryph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiryph/subscriptions","organizations_url":"https://api.github.com/users/kiryph/orgs","repos_url":"https://api.github.com/users/kiryph/repos","events_url":"https://api.github.com/users/kiryph/events{/privacy}","received_events_url":"https://api.github.com/users/kiryph/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-23T21:01:52Z","updated_at":"2015-03-24T01:40:23Z","closed_at":null,"body":"I have set in vim `formatprg` to autopep8 for python files.\r\nOften I apply the formatprogram via the command`gq` only to a code fragment which has a common indentation level which I want to keep.\r\n\r\nThe code formatter [uncrustify](http://uncrustify.sourceforge.net/) offers a command line flag `--frag` which assumes that the first line of input is correctly indented.\r\n\r\nIs it possible to add to autopep8 a similar option, so I can adjust setting `formatprg`?"},"comment":{"url":"https://api.github.com/repos/hhatto/autopep8/issues/comments/85284894","html_url":"https://github.com/hhatto/autopep8/issues/198#issuecomment-85284894","issue_url":"https://api.github.com/repos/hhatto/autopep8/issues/198","id":85284894,"user":{"login":"myint","id":1235108,"avatar_url":"https://avatars.githubusercontent.com/u/1235108?v=3","gravatar_id":"","url":"https://api.github.com/users/myint","html_url":"https://github.com/myint","followers_url":"https://api.github.com/users/myint/followers","following_url":"https://api.github.com/users/myint/following{/other_user}","gists_url":"https://api.github.com/users/myint/gists{/gist_id}","starred_url":"https://api.github.com/users/myint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myint/subscriptions","organizations_url":"https://api.github.com/users/myint/orgs","repos_url":"https://api.github.com/users/myint/repos","events_url":"https://api.github.com/users/myint/events{/privacy}","received_events_url":"https://api.github.com/users/myint/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T01:40:23Z","updated_at":"2015-03-24T01:40:23Z","body":"See [this](https://github.com/hhatto/autopep8/blob/master/test/vim_autopep8.py) for an example of how to enable this."}}