Title: E402 doesn't respect version strings · Issue #394 · PyCQA/pycodestyle · GitHub
Open Graph Title: E402 doesn't respect version strings · Issue #394 · PyCQA/pycodestyle
X Title: E402 doesn't respect version strings · Issue #394 · PyCQA/pycodestyle
Description: # some header comment 1 # some header comment 2 # some header comment 3 "DocString" __version__ = "3.1" import os def main(): print os.getenv('NOTREAL', 0) if __name__ == '__main__': main() pep8 returns testblah.py:8:1: E402 module level...
Open Graph Description: # some header comment 1 # some header comment 2 # some header comment 3 "DocString" __version__ = "3.1" import os def main(): print os.getenv('NOTREAL', 0) if __name__ == '__main__': main() pep8 re...
X Description: # some header comment 1 # some header comment 2 # some header comment 3 "DocString" __version__ = "3.1" import os def main(): print os.getenv('NOTREAL', 0) if __name__ =...
Opengraph URL: https://github.com/PyCQA/pycodestyle/issues/394
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"E402 doesn't respect version strings","articleBody":"``` python\n# some header comment 1\n# some header comment 2\n# some header comment 3\n\"DocString\"\n\n__version__ = \"3.1\"\n\nimport os\n\n\ndef main():\n print os.getenv('NOTREAL', 0)\n\nif __name__ == '__main__':\n main()\n```\n\npep8 returns\ntestblah.py:8:1: E402 module level import not at top of file\n\nWhen this is acceptable by PEP8's standard on version strings.\n\nhttps://www.python.org/dev/peps/pep-0008/#version-bookkeeping\n\npep8 --version\n1.6.2\n","author":{"url":"https://github.com/lewisc","@type":"Person","name":"lewisc"},"datePublished":"2015-03-19T19:28:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/394/pycodestyle/issues/394"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:76b44194-580b-ed88-c52b-160876d8eca4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ACB2:24CA2A:4609978:5D8D76A:6A653027 |
| html-safe-nonce | 13f0900f660e8d143d8e36aff215da79dd3232f6da4e5fbb5bf0d6ffa550d0aa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0IyOjI0Q0EyQTo0NjA5OTc4OjVEOEQ3NkE6NkE2NTMwMjciLCJ2aXNpdG9yX2lkIjoiNjk0NzM0OTc5MzcwMTM1NTkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e51a03211fc12fd33ef54d20e08aecf3d6d7e6d07a5c2f4e00d794bb3d2683cc |
| hovercard-subject-tag | issue:63072735 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PyCQA/pycodestyle/394/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9dcb9aa11bf622bad65f5e7e2501ae95d789186d1ae9da25d887ab71e5007b67/PyCQA/pycodestyle/issues/394 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9dcb9aa11bf622bad65f5e7e2501ae95d789186d1ae9da25d887ab71e5007b67/PyCQA/pycodestyle/issues/394 |
| og:image:alt | # some header comment 1 # some header comment 2 # some header comment 3 "DocString" __version__ = "3.1" import os def main(): print os.getenv('NOTREAL', 0) if __name__ == '__main__': main() pep8 re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lewisc |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b |
| turbo-cache-control | no-preview |
| go-import | github.com/PyCQA/pycodestyle git https://github.com/PyCQA/pycodestyle.git |
| octolytics-dimension-user_id | 8749848 |
| octolytics-dimension-user_login | PyCQA |
| octolytics-dimension-repository_id | 324077 |
| octolytics-dimension-repository_nwo | PyCQA/pycodestyle |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 324077 |
| octolytics-dimension-repository_network_root_nwo | PyCQA/pycodestyle |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 309153364422b3c499922d1a2a6404910a58ed8e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width