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. ||
<source lang="python">
    def OnConnection(self, nKind, nCode):
        """
        Function comment ...
        """
        # pylint: disable=invalid-name
        # pylint: enable=invalid-name
        V = 'must be reported'
</source>
|}
|}

Revision as of 09:33, 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.
    def OnConnection(self, nKind, nCode):
        """
        Function comment ...
        """
        # pylint: disable=invalid-name
        # pylint: enable=invalid-name
        V = 'must be reported'