Python/Linting: Difference between revisions

From Fundamental Ramen
Jump to navigation Jump to search
Line 7: Line 7:
! TODO || Code
! TODO || Code
|-
|-
| Disable function name and arguments only. ||
| Disable function name and arguments only.<br/>(Single line mode is invalid here.) ||
<source lang="python">
<source lang="python">
     def OnConnection(self, nKind, nCode):
     def OnConnection(self, nKind, nCode):

Revision as of 09:35, 23 May 2019

Ignore some linting errors/warnings

See: https://pylint.readthedocs.io/en/latest/user_guide/message-control.html

TODO Code
Disable function name and arguments only.
(Single line mode is invalid here.)
    def OnConnection(self, nKind, nCode):
        """
        Function comment ...
        """
        # pylint: disable=invalid-name
        # pylint: enable=invalid-name
        V = 'must be reported'