[MESSAGES CONTROL] # Disabling messages that we either don't care about # for tests or are necessary to break for tests. # # C0103 : invalid-name (we prefer long, descriptive, names for tests) # C0111 : missing-docstring (we don't write docstrings for tests) # C0209: consider-using-f-string (raised when using string instead of a fstring) # C0330 : bad-continuation (we let black handle this) # C0412 : ungrouped-imports (we let isort handle this) # E1101 : no-member (raised on patched objects with mock checks) # R0205 : useless-object-inheritance (we need to support Python 2, so no, not useless) # R0801 : duplicate`-code (unit tests for similar things tend to be similar) # R0914 : too-many-locals (we prefer clarity over brevity in tests) # R0903 : too-few-public-methods (common for stub classes sometimes needed in tests) # W0212 : protected-access (raised when calling _ methods) # W0621 : redefined-outer-name (raised when using pytest-mock) # W0613 : unused-argument (raised when patches are needed but not called) # D101 : Missing docstring in public class (For tests, classes are created for logical grouping) # D102 : Missing docstring in public method (For tests, methods are created for logical grouping) # R0201 : No self use (For Tests, classes are created for logical grouping) disable = C0103, C0111, C0209, C0330, C0412, E1101, R0205, R0801, R0903, R0914, W0212, W0621, W0613, D102, D101, R0201 [VARIABLES] additional-builtins = raw_input [DESIGN] max-args = 10 [FORMAT] max-line-length = 120 [REPORTS] msg-template = {path}:{line}: [{msg_id}({symbol}), {obj}] {msg}