Getting Started

Setup

We recommend Visual Studio Code for RTM development. It comes with capability to debug code, perform git commands, linting, code formatting, and more.

Before starting your development environment set up, make sure you have all of the requirements specified in the User Guide's Requirements.

Once all the requirements are fulfilled, install Visual Studio Code, then set up your environment with Formatter and Linter.

Formatter and Linter

Step 1: install pylint

Step 2: configure formatting setting for VS Code

Optional: advanced settings

  • You may customize behavior of VS Code using settings.json. For windows OS, it's typically located in %APPDATA%\Code\User\settings.json
  • This is our recommended settings.json values, you may add more settings by referencing documentation for VS Code and its extensions:
{
    "python.languageServer": "Pylance",
    "pylint.lintOnChange": true,
    "pylint.args": [
        "--ignored-modules=inro,inro.emme.desktop,openmatrix",
        "--ignored-classes=inro,inro.emme.desktop,openmatrix",
        "--extension-pkg-whitelist=inro,inro.emme.desktop,openmatrix",
        "--disable=C,E1101",
        "--max-line-length=120"
    ],
    "[python]": {
        "editor.defaultFormatter": "ms-python.black-formatter",
        "editor.formatOnSave": true
    }
}

You may specify and save specific changes for your set up using setting files for VS Code: * For location of VS Code settings files, see VS Code Documentation on File Locations. * For references to VS Code settings, see VS Code Documentation on Settings Reference. * You may add other editor behavior such as "editor.formatOnSave": true, as per your reference.