Title: Autoformat on save ignores custom style file · Issue #730 · microsoft/vscode-python · GitHub
Open Graph Title: Autoformat on save ignores custom style file · Issue #730 · microsoft/vscode-python
X Title: Autoformat on save ignores custom style file · Issue #730 · microsoft/vscode-python
Description: Environment data VS Code version: 1.20 Python Extension version: 2018.1.0 Python Version: 3.6 OS and version: MacOS Sierra 0.12.6 Actual behavior First file save with python code formats it to default yapf style. Second save format code ...
Open Graph Description: Environment data VS Code version: 1.20 Python Extension version: 2018.1.0 Python Version: 3.6 OS and version: MacOS Sierra 0.12.6 Actual behavior First file save with python code formats it to defa...
X Description: Environment data VS Code version: 1.20 Python Extension version: 2018.1.0 Python Version: 3.6 OS and version: MacOS Sierra 0.12.6 Actual behavior First file save with python code formats it to defa...
Opengraph URL: https://github.com/microsoft/vscode-python/issues/730
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Autoformat on save ignores custom style file","articleBody":"## Environment data\r\nVS Code version: 1.20\r\nPython Extension version: 2018.1.0\r\nPython Version: 3.6\r\nOS and version: MacOS Sierra 0.12.6\r\n\r\n## Actual behavior\r\nFirst file save with python code formats it to default yapf style. Second save format code to intended, custom style specified in `.style.yapf`.\r\n\r\nTo fix this issue added custom argument to workspace settings:\r\n```\r\n \"python.formatting.yapfArgs\": [\r\n \"--style=.style.yapf\"\r\n ]\r\n```\r\nAfter that yapf on save works as intended\r\n\r\n## Expected behavior\r\nAfter changes in code and saving file, yapf should format code to style described in `.style.yapf`\r\n\r\n## Steps to reproduce: \r\n- open project\r\n- install and enable yapf\r\n- enable format on save\r\n- create `.style.yapf` file with custom settings (SPLIT_BEFORE_FIRST_ARGUMENT = true)\r\n- add changes to any .py file \r\n- save\r\n- now file is formatted with default style\r\n- add changes to same file\r\n- save\r\n- now file is formatted with custom style\r\n\r\n","author":{"url":"https://github.com/krzysztofwolski","@type":"Person","name":"krzysztofwolski"},"datePublished":"2018-02-08T15:44:17Z","url":"https://github.com/microsoft/vscode-python/issues/730"}
| 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:064236a5-c10e-d7c3-f4c7-acf5dfb52321 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DBDC:1F3FDA:78DDB:A2748:6AFE321E |
| html-safe-nonce | 5b2232292463bfbbdf5d5621fdabbfbe353c96b4d0dea4ca03cf86f4a71d55a6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkRDOjFGM0ZEQTo3OEREQjpBMjc0ODo2QUZFMzIxRSIsInZpc2l0b3JfaWQiOiI4MTU1ODcwOTI2Njg0OTU5MjYyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 315b13652e4ad02b80292fa2688e0264d17caf71b49bc8bee087124ea76bd2d2 |
| hovercard-subject-tag | issue:295560577 |
| 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/microsoft/vscode-python/730/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8e5f86b211dd537ad6ca5e821aa370843f3bebc689dc7bcc183772bb8213df92/microsoft/vscode-python/issues/730 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8e5f86b211dd537ad6ca5e821aa370843f3bebc689dc7bcc183772bb8213df92/microsoft/vscode-python/issues/730 |
| og:image:alt | Environment data VS Code version: 1.20 Python Extension version: 2018.1.0 Python Version: 3.6 OS and version: MacOS Sierra 0.12.6 Actual behavior First file save with python code formats it to defa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | krzysztofwolski |
| hostname | github.com |
| expected-hostname | github.com |
| None | d70e31220a67f6376c108d2416fa8e7df854c1065b1672ab7a88ab6dc3a809e2 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-python git https://github.com/microsoft/vscode-python.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 106462765 |
| octolytics-dimension-repository_nwo | microsoft/vscode-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 49946255 |
| octolytics-dimension-repository_parent_nwo | DonJayamanne/pythonVSCode |
| octolytics-dimension-repository_network_root_id | 49946255 |
| octolytics-dimension-repository_network_root_nwo | DonJayamanne/pythonVSCode |
| 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 | ccb88d9c92abe69245b429398c8a57ae87070c7c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width