FlexSEA Wiki

A WEARABLE ROBOTICS TOOLKIT

User Tools

Site Tools


styleguidepython

Dephy Python Programming Style Guide

Programming in C/C++? Dephy C/C++ Programming Style Guide

General

The Black style guide should be followed in all python scripts in order

There is only one modification made to the style: Only tabs (tabulations) are used for indentation.

Formatter

Use this formatted with your IDE of choice: https://pypi.org/project/black-but-with-tabs-instead-of-spaces/

Sublime

For usage with Sublime Text 3: Install the formatted above. Use this plugin to run the formatted: https://github.com/csurfer/sublime_black

PyCharm

Instructions coming soon.

Linter

Use pylint with the following options:

--indent-string='\t' --disable=C0330

Sublime

  1. Using [https://packagecontrol.io/|Package Control], install SublimeLinter
  2. Install SublimeLinter-pylint
  3. Adds the following settings fo pylint

styleguidepython.txt · Last modified: 2021/02/22 19:44 by casmat