Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ jobs:
run: |
python -m pip install --upgrade pip wheel setuptools
if [ -f requirements-all.txt ]; then
python -m pip install -r requirements-all.txt
python -m pip install --use-pep517 -r requirements-all.txt
elif [ -f requirements.txt ]; then
python -m pip install -r requirements.txt;
python -m pip install --use-pep517 -r requirements.txt;
fi
python -m pip install -e .
- name: Install test dependencies
Expand Down
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ indent-string=' '
max-line-length=100

# Maximum number of lines in a module.
max-module-lines=1000
max-module-lines=1200

# List of optional constructs for which whitespace checking is disabled. `dict-
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
Expand Down
5 changes: 3 additions & 2 deletions msticpy/config/query_editor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pylint:disable=too-many-lines
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
Expand All @@ -8,8 +9,8 @@

from dataclasses import asdict, dataclass
from pathlib import Path
from typing import Any, Literal, cast, Callable
from types import TracebackType
from typing import Any, Callable, Literal, cast

import ipywidgets as widgets
import yaml
Expand All @@ -30,7 +31,7 @@
__version__ = VERSION
__author__ = "Ian Hellen"

# pylint: disable=too-many-instance-attributes, too-many-lines
# pylint: disable=too-many-instance-attributes


class IPyDisplayMixin(widgets.widgets.widget_templates.LayoutProperties):
Expand Down
3 changes: 1 addition & 2 deletions msticpy/context/azure/azure_data.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pylint:disable=too-many-lines
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
Expand Down Expand Up @@ -69,8 +70,6 @@
__version__ = VERSION
__author__ = "Pete Bryan"

# pylint:disable=too-many-lines

logger: logging.Logger = logging.getLogger(__name__)

_CLIENT_MAPPING: dict[
Expand Down
3 changes: 1 addition & 2 deletions msticpy/context/geoip.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pylint:disable=too-many-lines
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
Expand Down Expand Up @@ -56,8 +57,6 @@

logger: logging.Logger = logging.getLogger(__name__)

# pylint:disable=too-many-lines


class GeoIPDatabaseError(Exception):
"""Exception when GeoIP database cannot be found."""
Expand Down
2 changes: 1 addition & 1 deletion msticpy/context/vtlookupv3/vtlookupv3.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pylint:disable=too-many-lines
"""VirusTotal v3 API."""

from __future__ import annotations
Expand Down Expand Up @@ -42,7 +43,6 @@
) from imp_err

logger: logging.Logger = logging.getLogger(__name__)
# pylint: disable=too-many-lines


class MsticpyVTNoDataError(Exception):
Expand Down
3 changes: 1 addition & 2 deletions msticpy/data/drivers/azure_kusto_driver.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pylint:disable=too-many-lines
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
Expand Down Expand Up @@ -66,8 +67,6 @@
"https://msticpy.readthedocs.io/en/latest/DataProviders/DataProv-Kusto.html"
)

# pylint:disable=too-many-lines

logger: logging.Logger = logging.getLogger(__name__)


Expand Down
12 changes: 9 additions & 3 deletions msticpy/nbwidgets/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"""Module for pre-defined widget layouts."""
from abc import ABC
from enum import IntEnum
from typing import Any, Dict, List, Optional
from typing import Any, Dict, List, Optional, ClassVar
from weakref import WeakValueDictionary

from IPython.display import display
Expand Down Expand Up @@ -34,8 +34,14 @@ class RegisteredWidget(ABC):
the same cell after entering values.
"""

ALLOWED_KWARGS = ["id_vals", "val_attrs", "nb_params", "name_space", "register"]
_NB_PARAMS: Dict[str, str] = {}
ALLOWED_KWARGS: ClassVar[List[str]] = [
"id_vals",
"val_attrs",
"nb_params",
"name_space",
"register",
]
_NB_PARAMS: ClassVar[Dict[str, str]] = {}

def __init__(
self,
Expand Down
Loading