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

Add VS code settings.json file #42

Merged
merged 4 commits into from
Jul 29, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
{
"python.testing.pytestArgs": [
"."
"python.linting.pylintEnabled": true,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like pylint isn't in the poetry dev dependencies btw. Do we want to enable it or not?

I suggest we either don't use this linter or add it to the dependencies.

@dalonsoa @davidorme

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to use it - and it seems we want, right @davidorme - it should be in the dependency list, yes.

"python.linting.flake8Enabled": true,
"python.linting.mypyEnabled": true,
"python.linting.enabled": true,
"python.formatting.provider": "black",
"editor.formatOnSave": true,
"editor.rulers": [
88
],
"python.testing.unittestEnabled": false,
jaideep777 marked this conversation as resolved.
Show resolved Hide resolved
"python.testing.pytestEnabled": true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be here, otherwise VSCode testing does not know what to use for tests.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It still is set to true! See below

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omg

"python.testing.pytestEnabled": true,
"python.testing.pytestArgs": [
"-s",
"tests",
// --no-cov needed so that breakpoints work: https://github.com/microsoft/vscode-python/issues/693
"--no-cov"
],
"workbench.editorAssociations": {
"*.ipynb": "jupyter-notebook"
},
}
Empty file added tests/__init__.py
Empty file.