whylabs/whylogs-python

View on GitHub

Showing 3,918 of 3,918 total issues

Line too long (102 > 79 characters)
Open

        # TODO: Include strings in above when we update whylogs-sketching fi.update_np to take strings
Severity: Minor
Found in python/whylogs/core/metrics/metrics.py by pep8

Limit all lines to a maximum of 79 characters.

There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side.  The default wrapping on such
devices looks ugly.  Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.

Reports error E501.

Line too long (97 > 79 characters)
Open

            strings = [s[0 : self.max_frequent_item_size] for s in view.pandas.strings.to_list()]
Severity: Minor
Found in python/whylogs/core/metrics/metrics.py by pep8

Limit all lines to a maximum of 79 characters.

There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side.  The default wrapping on such
devices looks ugly.  Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.

Reports error E501.

Line too long (86 > 79 characters)
Open

            f"lower_{cfg.hll_stddev}": self.hll.value.get_lower_bound(cfg.hll_stddev),
Severity: Minor
Found in python/whylogs/core/metrics/metrics.py by pep8

Limit all lines to a maximum of 79 characters.

There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side.  The default wrapping on such
devices looks ugly.  Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.

Reports error E501.

Line too long (82 > 79 characters)
Open

            result = self.hll.value.get_upper_bound(number_of_standard_deviations)
Severity: Minor
Found in python/whylogs/core/metrics/metrics.py by pep8

Limit all lines to a maximum of 79 characters.

There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side.  The default wrapping on such
devices looks ugly.  Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.

Reports error E501.

Line too long (85 > 79 characters)
Open

    def to_summary_dict(self, cfg: Optional[SummaryConfig] = None) -> Dict[str, Any]:

Limit all lines to a maximum of 79 characters.

There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side.  The default wrapping on such
devices looks ugly.  Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.

Reports error E501.

Line too long (90 > 79 characters)
Open

    return MetricComponentMessage(hll=HllSketchMessage(sketch=sketch.serialize_compact()))

Limit all lines to a maximum of 79 characters.

There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side.  The default wrapping on such
devices looks ugly.  Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.

Reports error E501.

Line too long (80 > 79 characters)
Open

            s = unicodedata.normalize("NFD", value) if self.normalize else value

Limit all lines to a maximum of 79 characters.

There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side.  The default wrapping on such
devices looks ugly.  Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.

Reports error E501.

Line too long (84 > 79 characters)
Open

    def add_metadata_to_field(self, column_name: str, categories: Set[str]) -> None:

Limit all lines to a maximum of 79 characters.

There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side.  The default wrapping on such
devices looks ugly.  Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.

Reports error E501.

Line too long (89 > 79 characters)
Open

                merged_keys = set(self.field_metadata.keys() + other.field_metadata.keys)

Limit all lines to a maximum of 79 characters.

There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side.  The default wrapping on such
devices looks ugly.  Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.

Reports error E501.

The input method in Python 2 will read from standard input, evaluate and run the resulting string as python source code. This is similar, though in many ways worse, then using eval. On Python 2, use raw_input instead, input is safe in Python 3.
Open

            choice = int(input("Enter a number from the list: "))

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert ":" not in api_key

The input method in Python 2 will read from standard input, evaluate and run the resulting string as python source code. This is similar, though in many ways worse, then using eval. On Python 2, use raw_input instead, input is safe in Python 3.
Open

        variable = input(f"What is your {variable_name.value}? ")

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert profile_path or profile_file, "Either a file or file path must be specified when uploading profiles"

Try, Except, Pass detected.
Open

    except Exception:

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert len(kwargs) == 0, ValueError("Profiling without partition can not take extra arguments")

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert func in ["viz"]

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert isinstance(x, ResultSet)

subprocess call with shell=True identified, security issue.
Open

            result = subprocess.run(command, shell=True, executable="/bin/bash", capture_output=True, text=True)

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

            assert len(dfs) == 1, "viz_profile can take only one dataframe"

Use of insecure MD2, MD4, MD5, or SHA1 hash function.
Open

    hashes = [int.from_bytes(sha1(it.encode("utf-8")).digest(), "big") for it in col_names]
Severity
Category
Status
Source
Language