Python: Update mypy and pylint versions
Update mypy and pylint and fix several new warnings.
Change-Id: I448eb306a1b7325ab6aae46f02622db781f8b6db
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/22880
Commit-Queue: Wyatt Hepler <hepler@google.com>
Reviewed-by: Rob Mohr <mohrr@google.com>
diff --git a/.pylintrc b/.pylintrc
index 3b3216d..09055b8 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -63,13 +63,14 @@
# --disable=W".
disable=bad-continuation, # Rely on yapf for formatting
fixme,
- subprocess-run-check
+ subprocess-run-check,
+ raise-missing-from,
# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
# multiple time (only on the command line, not in the configuration file where
# it should appear only once). See also the "--disable" option for examples.
-enable=c-extension-no-member
+enable=c-extension-no-member,
[REPORTS]
@@ -88,7 +89,7 @@
# Set the output format. Available formats are text, parseable, colorized, json
# and msvs (visual studio). You can also give a reporter class, e.g.
# mypackage.mymodule.MyReporterClass.
-output-format=text
+output-format=colorized
# Tells whether to display a full report or only the messages.
reports=no