PyCharm

A 1-post collection

PyCharm suppress inspections list

I've been searching for a complete reference to PyCharm's #noinspection markup for some time. I found #noinspection PyUnresolvedReferences for suppressing the warning about an unused import statement with Google, and I was able to guess at PyProtectedMember myself, but it was clear that many remained.

Unfortunately the tooltip action in PyCharm only gives the option to suppress some warnings, revealing for instance the #noinspection PyBroadException markup but few others.

I decided I had had enough and used the excellent Agent Ransack to search for PyUnresolvedReferences within the installation directory. Once I found it I was able to extract the rest. I believe the following to be a complete list. I've found PyArgumentList to be particularly useful when PyCharm is upset about valid syntax (e.g. the functional syntax for enumerations in Python 3.4: enum.Enum('vehicle', 'car bicycle truck') or modules with opaque functions).

PyAbstractClass
PyArgumentEqualDefault
PyArgumentList
PyAssignmentToLoopOrWithParameter
PyAttributeOutsideInit
PyAugmentAssignment
PyBroadException
PyByteLiteral
PyCallByClass
PyCallingNonCallable
PyChainedComparisons
PyClassHasNoInit
PyClassicStyleClass
PyComparisonWithNone
PyCompatibility
PyDecorator
PyDefaultArgument
PyDeprecatedModules
PyDeprecation
PyDictCreation
PyDictDuplicateKeys
PyDocstring
PyDocstringTypes
PyExceptClausesOrder
PyExceptionInherit
PyFromFutureImport
PyGlobalUndefined
PyInconsistentIndentation
PyInitNewSignature
PyInterpreter
PyListCreation
PyMandatoryEncoding
PyMethodFirstArgAssignment
PyMethodMayBeStatic
PyMethodOverriding
PyMethodParameters
PyMissingConstructor
PyNestedDecorators
PyNonAsciiChar
PyNoneFunctionAssignment
PyOldStyleClasses
PyPackageRequirements
PyPep8
PyPep8Naming
PyPropertyAccess
PyPropertyDefinition
PyProtectedMember
PyRaisingNewStyleClass
PyRedeclaration
PyRedundantParentheses
PyReturnFromInit
PySetFunctionToLiteral
PyShadowingBuiltins
PyShadowingNames
PySimplifyBooleanCheck
PySingleQuotedDocstring
PyStatementEffect
PyStringException
PyStringFormat
PySuperArguments
PyTrailingSemicolon
PyTupleAssignmentBalance
PyTupleItemAssignment
PyTypeChecker
PyUnboundLocalVariable
PyUnnecessaryBackslash
PyUnreachableCode
PyUnresolvedReferences
PyUnsupportedFeatures
PyUnusedLocal

Discussion