stellargraph/stellargraph

View on GitHub
scripts/demo_indexing.py

Summary

Maintainability
A
1 hr
Test Coverage

Consider possible security implications associated with subprocess module.
Open

import subprocess
Severity: Info
Found in scripts/demo_indexing.py by bandit

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

        assert isinstance(kind, LinkKind)
Severity: Info
Found in scripts/demo_indexing.py by bandit

subprocess call - check for execution of untrusted input.
Open

        subprocess.run(
            [
                "buildkite-agent",
                "annotate",
                "--style=error",
Severity: Info
Found in scripts/demo_indexing.py by bandit

Starting a process with a partial executable path
Open

        subprocess.run(
            [
                "buildkite-agent",
                "annotate",
                "--style=error",
Severity: Info
Found in scripts/demo_indexing.py by bandit

Avoid deeply nested control flow statements.
Open

                        with builder.element("td"):
                            self._render_cell(builder, algorithm.columns[heading])

Severity: Major
Found in scripts/demo_indexing.py - About 45 mins to fix

    Avoid too many return statements within this function.
    Open

            return T(inp)
    Severity: Major
    Found in scripts/demo_indexing.py - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status