TMC Dish Leaf Nodes code quality guidelines
Code formatting / style
TMC Dish Leaf Node uses the
black code formatter to format its code. Formatting can
be checked using the command
The CI pipeline does check that if code has been formatted using black or not.
TMC Dish Leaf Node uses below libraries/utilities for linting. Linting can be checked
isort- It provides a command line utility, Python library and
plugins for various editors to quickly sort all your imports.
black- It is used to check if the code has been blacked.
flake8- It is used to check code base against coding style (PEP8),
programming errors (like “library imported but unused” and “Undefined name”),etc.
pylint- It is looks for programming errors, helps enforcing a coding standard,
sniffs for code smells and offers simple refactoring suggestions.
TMC Dish Leaf Node uses pytest to test its code, with the pytest-cov plugin for measuring coverage.