Title: PEP8, flake8, autopep8 · Issue #286 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: PEP8, flake8, autopep8 · Issue #286 · IfcOpenShell/IfcOpenShell
X Title: PEP8, flake8, autopep8 · Issue #286 · IfcOpenShell/IfcOpenShell
Description: For Python code there is the comprehensive style guide PEP8: https://www.python.org/dev/peps/pep-0008/ flake8 can be used to check the code, autopep8 can be used to fix most of the issues. Both are installable from PyPI: python -m pip in...
Open Graph Description: For Python code there is the comprehensive style guide PEP8: https://www.python.org/dev/peps/pep-0008/ flake8 can be used to check the code, autopep8 can be used to fix most of the issues. Both are...
X Description: For Python code there is the comprehensive style guide PEP8: https://www.python.org/dev/peps/pep-0008/ flake8 can be used to check the code, autopep8 can be used to fix most of the issues. Both are...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/286
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PEP8, flake8, autopep8","articleBody":"For Python code there is the comprehensive style guide **PEP8**:\r\nhttps://www.python.org/dev/peps/pep-0008/\r\n\r\n**flake8** can be used to check the code,\r\n**autopep8** can be used to fix most of the issues.\r\nBoth are installable from PyPI:\r\n```\r\npython -m pip install -U flake8 autopep8\r\n```\r\n\r\nThen, `cd` to the directory and run the following commands to get some harmless whitespace changes:\r\n```\r\ncd src\\ifcopenshell-python\\ifcopenshell\r\nflake8 --count --exclude=\"deps\" --max-line-length=200 --statistics -qq\r\nautopep8 --in-place --recursive --max-line-length=200 --select=\"E101,W1,W2\" .\r\n```\r\nAfter that, check the git diff (with and without ignoring whitespace changes) and commit. \r\nIf more cleaning is desired, run\r\n```\r\nflake8 --count --exclude=\"deps\" --max-line-length=200 --statistics -qq\r\nautopep8 --in-place --recursive --max-line-length=200 .\r\nautopep8 --in-place --recursive --max-line-length=200 --aggressive --aggressive --aggressive .\r\n```\r\nOr select single rules and check the git diff after each rule to see what changed.\r\n","author":{"url":"https://github.com/thorade","@type":"Person","name":"thorade"},"datePublished":"2017-11-01T10:40:24Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/286"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:0e3e42fa-2dac-267d-b8ef-bd0c3a10b165 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED72:1173F1:2E0ACB:3D83E2:6B04B7C9 |
| html-safe-nonce | fb6b752088f8e2fd350dc517423d2e02b9f9d54f9bbf84f2f15297b96b53d625 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDcyOjExNzNGMToyRTBBQ0I6M0Q4M0UyOjZCMDRCN0M5IiwidmlzaXRvcl9pZCI6IjE4MDU1Mjk4Njg0OTUyNzE4ODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1755bb9f2ce53499cbdba1eff7b7f8adf30890cbb0a3fc77cde7db3e2c73767b |
| hovercard-subject-tag | issue:270266652 |
| 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/IfcOpenShell/IfcOpenShell/286/issue_layout |
| twitter:image | https://opengraph.githubassets.com/03d85889d75a0afe50b5bd9b27e5c43281c277d2fd9389c13942afbc40875ce5/IfcOpenShell/IfcOpenShell/issues/286 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/03d85889d75a0afe50b5bd9b27e5c43281c277d2fd9389c13942afbc40875ce5/IfcOpenShell/IfcOpenShell/issues/286 |
| og:image:alt | For Python code there is the comprehensive style guide PEP8: https://www.python.org/dev/peps/pep-0008/ flake8 can be used to check the code, autopep8 can be used to fix most of the issues. Both are... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | thorade |
| hostname | github.com |
| expected-hostname | github.com |
| None | 378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7 |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| 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 | b032e77f1ea437ede6c115446a0a467709b468e7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width