Skip to content
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

Python formatting fixes #93

Open
johngrantuk opened this issue Feb 6, 2025 · 0 comments
Open

Python formatting fixes #93

johngrantuk opened this issue Feb 6, 2025 · 0 comments

Comments

@johngrantuk
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant