Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.23 KB

README.rst

File metadata and controls

44 lines (34 loc) · 1.23 KB

Starbelly Python Client

Development

Pylint

To prevent Pylint from raising errors for protobuf generated types, the plugin pylint-protobuf is included as a development dependency.

Run pylint with pylint-protobuf plugin:

$ pylint --load-plugins=pylint_protobuf client.py

To use the plugin with VSCode, edit settings.json:

{
    "python.pythonPath": "venv/bin/python",
    "python.linkting.pylintEnabled": true,
    "python.linting.pylintArgs": ["--load-plugins", "pylint_protobuf", "--disable", "C0330" ],
    "python.testing.unittestArgs": [
        "-v",
        "-s",
        "./tests",
        "-p",
        "test_*.py"
    ],
    "python.testing.pytestEnabled": true,
    "python.testing.nosetestsEnabled": false,
    "python.testing.unittestEnabled": false,
    "python.testing.pytestArgs": [
        "tests"
    ],
    "restructuredtext.confPath": "${workspaceFolder}/venv/lib/python3.7/site-packages/importlib_metadata/docs"
}