Module implementing a checker for miscellaneous checks.
None |
MiscellaneousChecker | Class implementing a checker for miscellaneous checks. |
pairwise |
Class implementing a checker for miscellaneous checks.
BuiltinsWhiteList |
Category |
Codes |
FormatFieldRegex |
Formatter |
None |
MiscellaneousChecker | Constructor |
__checkBugBear | Private method for bugbear checks. |
__checkBuiltins | Private method to check, if built-ins are shadowed. |
__checkCoding | Private method to check the presence of a coding line and valid encodings. |
__checkCommentedCode | Private method to check for commented code. |
__checkComprehensions | Private method to check some comprehension related things. |
__checkConstantModification | Private method to check constant modifications. |
__checkCopyright | Private method to check the presence of a copyright statement. |
__checkDateTime | Private method to check use of naive datetime functions. |
__checkDefaultMatchCase | Private method to check the default match case. |
__checkDictWithSortedKeys | Private method to check, if dictionary keys appear in sorted order. |
__checkExplicitStringConcat | Private method to check for explicitly concatenated strings. |
__checkFormatString | Private method to check string format strings. |
__checkFuture | Private method to check the __future__ imports. |
__checkGettext | Private method to check the 'gettext' import statement. |
__checkImplicitStringConcat | Private method to check for implicitly concatenated strings. |
__checkLineContinuation | Private method to check line continuation using backslash. |
__checkPep3101 | Private method to check for old style string formatting. |
__checkPrintStatements | Private method to check for print statements. |
__checkProperties | Private method to check for issue with property related methods. |
__checkReturn | Private method to check return statements. |
__checkSysVersion | Private method to check the use of sys.version and sys.version_info. |
__checkTuple | Private method to check for one element tuples. |
__dictShouldBeChecked | Private function to test, if the node should be checked. |
__getCoding | Private method to get the defined coding of the source. |
__getFields | Private method to extract the format field information. |
__isImplicitStringConcat | Private method to check, if the given strings indicate an implicit string concatenation. |
None |
Constructor
Private method for bugbear checks.
Private method to check, if built-ins are shadowed.
Private method to check the presence of a coding line and valid encodings.
Private method to check for commented code.
Private method to check some comprehension related things.
This method is adapted from: flake8-comprehensions v3.16.0 Original: Copyright (c) 2017 Adam Johnson
Private method to check constant modifications.
Private method to check the presence of a copyright statement.
Private method to check use of naive datetime functions.
Private method to check the default match case.
Private method to check, if dictionary keys appear in sorted order.
Private method to check for explicitly concatenated strings.
Private method to check string format strings.
Private method to check the __future__ imports.
Private method to check the 'gettext' import statement.
Private method to check for implicitly concatenated strings.
Private method to check line continuation using backslash.
Private method to check for old style string formatting.
Private method to check for print statements.
Private method to check for issue with property related methods.
Private method to check return statements.
Private method to check the use of sys.version and sys.version_info.
Private method to check for one element tuples.
Private function to test, if the node should be checked.
Private method to get the defined coding of the source.
Private method to extract the format field information.
Private method to check, if the given strings indicate an implicit string concatenation.