- encoding: utf-8
- linux line breaking
- indent: 4 spaces
- comment language: English
- shebang:
#!/usr/bin/env python
Simply run pylint with:
pylint pyteltools
The configuration file .pylintrc will be used.
Avoid any wildcard imports.
Three groups for line imports are separated by an empty line:
- internal Python imports
- imports from PyTelTools
- relative imports (within a PyTelTools module)
Imports are sorted by alphabetic order.
Example:
import sys
from time import time
from pyteltools.conf import settings
from pyteltools.slf import Serafin
from .Node import Box, Link, Port
from .util import loggerSome common import renamings:
import numpy as np
import pyteltools.slf.misc as operations- variables, functions, methods: lowercase_with_underscores
- class: CapWords
PyQt element prefixes :
qcb= QCheckBoxqds= QDoubleSpinBoxqle= QLineEditqpb= QPushButton
_initWidgets(): fix element sizes, tooltips, ..._setLayout(): add widgets, items and finally callssetLayouts()_bindEvents(): bind events with methods
Use with following logging levels (with corresponding numeric value) :
CRITICAL(40)WARNING(30)INFO(20)DEBUG(10)
- 0 = successful termination
- 1 = different kind of errors/inconsistencies: in input/output, error during computation, ...
- 2 = error or inconsistencies with command-line arguments
- 3 = file error (parser, writer)
Developer documentation is generated with doyxgen and provided on https://cnr-engineering.github.io/PyTelTools.
Doxygen will extract preformatted comments following some conventions.