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

Common VSCode settings #27

Closed
dalonsoa opened this issue Jul 27, 2022 · 1 comment · Fixed by #42
Closed

Common VSCode settings #27

dalonsoa opened this issue Jul 27, 2022 · 1 comment · Fixed by #42
Assignees
Labels
suggestion Suggestions for improvement

Comments

@dalonsoa
Copy link
Collaborator

How to setup the cod editor is a rather personal thing, but it is useful to have a common set of settings or tools adding the coding. For the .vscode/settings.json file, I would suggest to have the following:

{
    "python.linting.pylintEnabled": true,
    "python.linting.flake8Enabled": true,
    "python.linting.mypyEnabled": true,
    "python.linting.enabled": true,
    "python.formatting.provider": "black",
    "editor.formatOnSave": true,
    "workbench.tree.indent": 24,
    "editor.rulers": [
        88
    ],
    "files.autoSave": "afterDelay",
    "python.testing.unittestEnabled": false,
    "python.testing.pytestEnabled": true,
    "python.testing.pytestArgs": [
        "-s",
        "tests"
    ],
    "workbench.editorAssociations": {
        "*.ipynb": "jupyter-notebook"
    },
    "rewrap.autoWrap.enabled": true,
    "editor.wordWrapColumn": 88,

The suitability of these options should be discussed and some of them might need further configuration in VSCode, like installing another extension or a dev-dependency.

@dalonsoa dalonsoa added the suggestion Suggestions for improvement label Jul 27, 2022
@alexdewar
Copy link
Collaborator

For any additional extensions needed, you can also consider adding them to
extensions.json so they'll be recommended to developers.

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

Successfully merging a pull request may close this issue.

2 participants