Description
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"
}
]
}