From 34af0da14d36d54aad03571343697b10f440809b Mon Sep 17 00:00:00 2001 From: Ian Hellen Date: Wed, 10 Nov 2021 11:44:42 -0800 Subject: [PATCH] Addressing McCabe and Prospector warnings --- msticnb/nb/azsent/host/host_logons_summary.py | 2 +- msticnb/nb/azsent/host/host_summary.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/msticnb/nb/azsent/host/host_logons_summary.py b/msticnb/nb/azsent/host/host_logons_summary.py index 1723375..64197c8 100644 --- a/msticnb/nb/azsent/host/host_logons_summary.py +++ b/msticnb/nb/azsent/host/host_logons_summary.py @@ -116,7 +116,7 @@ def run( timespan: Optional[TimeSpan] = None, options: Optional[Iterable[str]] = None, **kwargs, - ) -> HostLogonsSummaryResult: + ) -> HostLogonsSummaryResult: # noqa:MC0001 """ Return host summary data. diff --git a/msticnb/nb/azsent/host/host_summary.py b/msticnb/nb/azsent/host/host_summary.py index 9e742e0..4ca5326 100644 --- a/msticnb/nb/azsent/host/host_summary.py +++ b/msticnb/nb/azsent/host/host_summary.py @@ -107,7 +107,7 @@ class HostSummary(Notebooklet): # pylint: disable=too-many-branches @set_text(docs=_CELL_DOCS, key="run") # noqa MC0001 - def run( + def run( # noqa:MC0001 self, value: Any = None, data: Optional[pd.DataFrame] = None, diff --git a/setup.py b/setup.py index 6c78069..a1e8db2 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ import setuptools -with open("requirements.txt", "r") as fh: +with open("requirements.txt", "r", encoding="utf-8") as fh: INSTALL_REQUIRES = fh.readlines() # pylint: disable=locally-disabled, invalid-name