Update PR workflow / workspace#1053
Conversation
|
@rmorshea Can you send me your |
|
will send the ruff config tomorrow |
|
It seems like there's not a whole lot special about my config. I just have the charliemarsh.ruff extension installed and the following: project: user: It's possible that our Ruff config in |
Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>
|
Tests are borked again, preventing merge. |
|
I can't self-merge on this repo so I will need another approval. |
.vscode/settings.json
Outdated
| { | ||
| "editor.detectIndentation": false, | ||
| "editor.formatOnSave": true, | ||
| "python.linting.enabled": true, |
There was a problem hiding this comment.
This is already the default
There was a problem hiding this comment.
Setting python.languageServer and python.liniting.enabled allows for VS Code to warn the user if it's not installed.
.vscode/settings.json
Outdated
| @@ -0,0 +1,35 @@ | |||
| { | |||
| "editor.detectIndentation": false, | |||
There was a problem hiding this comment.
Not sure why we need to configure this.
There was a problem hiding this comment.
Without customizing this, sometimes VS Code will try to use tabs instead of spaces depending on the file type.
.vscode/settings.json
Outdated
| "editor.formatOnSave": true, | ||
| "python.linting.enabled": true, | ||
| "python.linting.mypyEnabled": true, | ||
| "python.analysis.typeCheckingMode": "off", |
There was a problem hiding this comment.
This is already the default except on VSCode insiders
There was a problem hiding this comment.
Should we keep it off in anticipation of the insiders build coming to main?
.vscode/settings.json
Outdated
| "prettier.tabWidth": 4, | ||
| "prettier.useTabs": true, | ||
| "prettier.endOfLine": "auto", | ||
| "prettier.proseWrap": "never", |
There was a problem hiding this comment.
I use all the defaults for Prettier. I also think it will auto detect project configuration by looking for one of the places it might be set: https://prettier.io/docs/en/configuration.html
There was a problem hiding this comment.
Without proseWrap and endOfLine, prettier will auto-format jinja templates in a way that breaks them.
|
Let me know if you agree/disagree with the open comments. |
|
I can't merge due to lint errors. |
|
I'm realizing it's going to get annoying to maintain a vscode config file. Microsoft tends to deprecate/delete settings very frequently, and I don't want us to deal with that. I've changed this PR to only have suggested workspace extensions. |
This contribution is made under the MIT license.
Issues
N/A
Summary
Checklist
changelog.rsthas been updated with any significant changes.