Python/Linting

From Fundamental Ramen
< Python
Revision as of 07:07, 3 June 2019 by Tacoball (talk | contribs) (→‎Ignore some linting errors/warnings)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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