Setup Pycharm IDE

  1. Open pycharm,

    1. Open the peek project, open in new window
    2. Open each of the other projects mentioned above, add to current window
  2. File -> Settings (Ctrl+Alt+S with eclipse keymap)

    1. Editor -> Inspection (use the search bar for finding the inspections)

      1. Disable Python -> “PEP8 Naming Convention Violation”
      2. Change Python -> “Type Checker” from warning to error
      3. Change Python -> “Incorrect Docstring” from warning to error
      4. Change Python -> “Missing type hinting …” from warning to error
      5. Change Python -> “Incorrect call arguments” from warning to error
      6. Change Python -> “Unresolved references” from warning to error
    2. Project -> Project Dependencies

      1. peek_platform depends on -> plugin_base
      2. peek_logic_service depends on -> peek_platform, peek_admin_app
      3. peek_office_service depends on -> peek_platform, peek_field_app
      4. peek_agent_service depends on -> peek_platform
      5. peek_worker_service depends on -> peek_platform
    3. Project -> Project Structure

      1. peek-field-app -> Excluded
      2. peek-office-app -> Excluded
      3. peek-admin-app -> Excluded
    4. Languages & Frameworks -> Node.js and NPM

      1. Node interpreter -> ~/node-v10.20.0/bin/node
      2. Remove other node interpreters
    5. Languages & Frameworks -> TypesScript

      1. Node interpreter -> ~/node-v14.15.3/bin/node
      2. Enable TypeScript Compiler -> Checked
      3. Set options manually -> Checked
      4. Command line options -> –target es5 –experimentalDecorators –lib es6,dom –sourcemap –emitDecoratorMetadata
      5. Generate source maps -> Checked

Configure your developing software to use the virtual environment you wish to use

Here is an example of the setting in PyCharm:


Restart the services that use the plugin


The plugins that aren’t being developed should be installed with pip.

This is an example of running the peek logic service in debug mode using PyCharm

Under the drop down “Run” then “Edit Configurations…”

  1. Add new configuration, select “Python”
  2. Update the “Name:”
  3. Locate the script you wish to run
  4. Check that the “Python Interpreter” is correct