Skip to content

Instantly share code, notes, and snippets.

@Andreluizfc
Last active December 18, 2020 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Andreluizfc/d202abf6d5cb19d6db94349890e61557 to your computer and use it in GitHub Desktop.
Save Andreluizfc/d202abf6d5cb19d6db94349890e61557 to your computer and use it in GitHub Desktop.
VS Code Python Settings

VSCODE settings.json

{
    "python.pythonPath": "path_venv/bin/python3",
    "python.linting.pylintEnabled": true,
    "python.linting.enabled": true,
    "python.linting.pylintArgs": [
        "--extension-pkg-whitelist=cv2",
        "--generate-members"
    ],
    "python.linting.flake8Enabled": true,
    "window.zoomLevel": 0,
    "autoDocstring.docstringFormat": "numpy",
    "autoDocstring.quoteStyle": "'''",
    "autoDocstring.startOnNewLine": true,
    "editor.formatOnSave": true,
}

launch.json

{
// 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": "Python: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal"
        },
        {
            "name": "Python: pyvision run",
            "type": "python",
            "request": "launch",
            "program": "${workspaceFolder}/app/pyvision",
            "console": "integratedTerminal",
            "args": [
                "run",
                "crlv",
                "path"
            ]
        },
        {
            "name": "Python: pyvision run prod",
            "type": "python",
            "request": "launch",
            "program": "${workspaceFolder}/app/pyvision",
            "console": "integratedTerminal",
            "args": [
                "run",
                "-s",
                "-a",
                "prod",
                "service",
                "path"
            ]
        },
        {
            "name": "Python: pyvision report",
            "type": "python",
            "request": "launch",
            "program": "${workspaceFolder}/app/pyvision",
            "console": "integratedTerminal",
            "args": [
                "report",
                "/path/truth_table.csv",
                "/path/results.json"
            ]
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment