-
-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 <[email protected]>
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already the default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why we need to configure this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already the default except on VSCode insiders
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.rst
has been updated with any significant changes.