You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I setup vscode extensions with auto formatting and integrated linters so I don’t need to run pylint/black commands
A lot of warnings appeared - nothing critical, but it would be nice to handle them at some point 🙃
In case you’d like to apply the same on your vscode, all you’d need is:
enable python extension (which has pylint integrated)
create a .vscode folder containing a settings.json file with this:
{
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true
}
3. you might need to restart vscode
(all this inside python folder - not balancer-maths folder) 7:50
And I also setup a launch.json file within .vscode folder that allows to run a single test file and enables debugging with breakpoints
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Pytest Current File",
"type":"debugpy",
"request":"launch",
"module":"pytest",
"args":[
"${workspaceFolder}/${relativeFile}",
],
"justMyCode": true,
},
{
"name": "Pytest",
"type": "debugpy",
"request": "launch",
"module": "pytest",
"console": "integratedTerminal"
}
]
}
The text was updated successfully, but these errors were encountered:
I setup vscode extensions with auto formatting and integrated linters so I don’t need to run pylint/black commands
A lot of warnings appeared - nothing critical, but it would be nice to handle them at some point 🙃
In case you’d like to apply the same on your vscode, all you’d need is:
enable python extension (which has pylint integrated)
create a .vscode folder containing a settings.json file with this:
{
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true
}
3. you might need to restart vscode
(all this inside python folder - not balancer-maths folder)
7:50
And I also setup a launch.json file within .vscode folder that allows to run a single test file and enables debugging with breakpoints
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Pytest Current File",
"type":"debugpy",
"request":"launch",
"module":"pytest",
"args":[
"${workspaceFolder}/${relativeFile}",
],
"justMyCode": true,
},
{
"name": "Pytest",
"type": "debugpy",
"request": "launch",
"module": "pytest",
"console": "integratedTerminal"
}
]
}
The text was updated successfully, but these errors were encountered: