Python/Linting
< Python
Jump to navigation
Jump to search
Ignore some linting errors/warnings
See: https://pylint.readthedocs.io/en/latest/user_guide/message-control.html
| TODO | Code |
|---|---|
| Generate pylintrc |
pylint --generate-rcfile > pylintrc
|
| Disable function name and arguments for multi-line function definition. (Single line mode is invalid here.) |
def OnNotifyTicks(self, sMarketNo, sStockidx, nPtr, \
nDate, nTimehms, nTimemillis, \
nBid, nAsk, nClose, nQty, nSimulate):
"""
Handle received ticks.
"""
# pylint: disable=invalid-name, unused-argument, too-many-arguments
# pylint: enable=invalid-name
|