Module: check_mk
Branch: master
Commit: de70b3c2b7004a510d36f6d5ad33b30d8fadb19a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=de70b3c2b7004a…
Author: Tom Baerwinkel <tb(a)mathias-kettner.de>
Date: Wed Nov 14 11:36:31 2018 +0100
Fix checked mypy targets and annotations, remove yapf target from tests/static
Only perform mypy checks for files with type annotations since a large
amount of gui files throw errors.
Add and correct annotations so that "make test-mypy" now finishes
without errors for files with existing annotations. Many anntotations
in the checked files are still missing or too broad.
Remove the obsolete yapf target from tests/static/Makefile since it
is now in the top-level Makefile.
Change-Id: I93a30004b98bcda47fbcd57bbe478e9e1a0c45ec
---
cmk/daemon.py | 3 +-
cmk/ec/main.py | 10 +++---
cmk/gui/dashboard.py | 9 ++++--
cmk/gui/htmllib.py | 14 ++++++---
cmk/gui/i18n.py | 9 ++++--
cmk/gui/plugins/userdb/htpasswd.py | 10 +++---
cmk/gui/plugins/userdb/utils.py | 1 +
cmk/gui/plugins/wato/utils/base_modes.py | 1 +
cmk/gui/sidebar.py | 53 ++++++++++++++++++++++----------
cmk/gui/sites.py | 5 ++-
cmk/gui/table.py | 1 +
cmk/gui/visuals.py | 5 +--
cmk/gui/wato/pages/ldap.py | 1 -
cmk/notification_plugins/utils.py | 9 +++---
cmk/paths.py | 8 ++---
cmk/render.py | 5 +--
cmk_base/check_api.py | 7 +++--
tests/static/Makefile | 19 ++++++------
18 files changed, 108 insertions(+), 62 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=de70b3c2b7…