-
Star
(215)
You must be signed in to star a gist -
Fork
(35)
You must be signed in to fork a gist
-
-
Save pylover/7870c235867cf22817ac5b096defb768 to your computer and use it in GitHub Desktop.
| # Extracted using: $ unzip -p lib/pycharm.jar com/jetbrains/python/PyBundle.properties | grep -B1 INSP.NAME | grep '^#' | sed 's|Inspection||g' | sed -e 's|#\s\{,1\}|# noinspection |' | |
| # noinspection PyPep8 | |
| # noinspection PyPep8Naming | |
| # noinspection PyTypeChecker | |
| # noinspection PyAbstractClass | |
| # noinspection PyArgumentEqualDefault | |
| # noinspection PyArgumentList | |
| # noinspection PyAssignmentToLoopOrWithParameter | |
| # noinspection PyAttributeOutsideInit | |
| # noinspection PyAugmentAssignment | |
| # noinspection PyBroadException | |
| # noinspection PyByteLiteral | |
| # noinspection PyCallByClass | |
| # noinspection PyChainedComparsons | |
| # noinspection PyClassHasNoInit | |
| # noinspection PyClassicStyleClass | |
| # noinspection PyComparisonWithNone | |
| # noinspection PyCompatibility | |
| # noinspection PyDecorator | |
| # noinspection PyDefaultArgument | |
| # noinspection PyDictCreation | |
| # noinspection PyDictDuplicateKeys | |
| # noinspection PyDocstringTypes | |
| # noinspection PyExceptClausesOrder | |
| # noinspection PyExceptionInheritance | |
| # noinspection PyFromFutureImport | |
| # noinspection PyGlobalUndefined | |
| # noinspection PyIncorrectDocstring | |
| # noinspection PyInitNewSignature | |
| # noinspection PyInterpreter | |
| # noinspection PyListCreation | |
| # noinspection PyMandatoryEncoding | |
| # noinspection PyMethodFirstArgAssignment | |
| # noinspection PyMethodMayBeStatic | |
| # noinspection PyMethodOverriding | |
| # noinspection PyMethodParameters | |
| # noinspection PyMissingConstructor | |
| # noinspection PyMissingOrEmptyDocstring | |
| # noinspection PyNestedDecorators | |
| # noinspection PynonAsciiChar | |
| # noinspection PyNoneFunctionAssignment | |
| # noinspection PyOldStyleClasses | |
| # noinspection PyPackageRequirements | |
| # noinspection PyPropertyAccess | |
| # noinspection PyPropertyDefinition | |
| # noinspection PyProtectedMember | |
| # noinspection PyRaisingNewStyleClass | |
| # noinspection PyRedeclaration | |
| # noinspection PyRedundantParentheses | |
| # noinspection PySetFunctionToLiteral | |
| # noinspection PySimplifyBooleanCheck | |
| # noinspection PySingleQuotedDocstring | |
| # noinspection PyStatementEffect | |
| # noinspection PyStringException | |
| # noinspection PyStringFormat | |
| # noinspection PySuperArguments | |
| # noinspection PyTrailingSemicolon | |
| # noinspection PyTupleAssignmentBalance | |
| # noinspection PyTupleItemAssignment | |
| # noinspection PyUnboundLocalVariable | |
| # noinspection PyUnnecessaryBackslash | |
| # noinspection PyUnreachableCode | |
| # noinspection PyUnresolvedReferences | |
| # noinspection PyUnusedLocal | |
| # noinspection ReturnValueFromInit | |
| # noinspection SpellCheckingInspection | |
| # noinspection PyShadowingNames | |
| # noinspection PyCallingNonCallable |
Please, add this to ignore shadowing warnings:
# noinspection PyShadowingNames
@gherolyants, done.
I just want to add to this.
Regarding the "Broad Exception" - I am running 2021.3.2 CE, also tested in 2022.1 EAP build 221.3427.103;
When using a try/except with # noinspection PyBroadException - the comment must be at the top of the try portion.
IE:
Good:
# noinspection PyBroadException
try:
print("Thing to try")
except Exception:
print("Exception!)
Bad:
try:
print("Thing to try")
# noinspection PyBroadException
except Exception:
print("Exception!)
please, add # noinspection PyCallingNonCallable
Note that # noinspection PyUnresolvedReferences works for ignoring unused imports.
Good to know, but contact JetBrains for such kind of issues.
A very useful list of all #noinspection comments is here:
https://www.jetbrains.com/help/pycharm/disabling-and-enabling-inspections.html#comments-ref
Also, other useful PyCharm info about suppressing comments is here:
https://www.jetbrains.com/help/pycharm/disabling-and-enabling-inspections.html#suppressing-comments
@daveusa31, done.