getindata/data-pipelines-cli

View on GitHub
data_pipelines_cli/cli_commands/generate/databricks_job.py

Summary

Maintainability
A
2 hrs
Test Coverage
A
100%

Function generate_databricks_job_command has 16 arguments (exceeds 4 allowed). Consider refactoring.
Open

def generate_databricks_job_command(
Severity: Major
Found in data_pipelines_cli/cli_commands/generate/databricks_job.py - About 2 hrs to fix

    Too many arguments (16/5)
    Open

    @click.option(

    Used when a function or method takes too many arguments.

    Too many local variables (16/15)
    Open

    @click.option(

    Used when a function or method has too many local variables.

    Value 'tuple' is unsubscriptable
    Open

        task_cluster: list[tuple[str, str]],

    Emitted when a subscripted value doesn't support subscription (i.e. doesn't define getitem method or class_getitem for a class).

    Value 'list' is unsubscriptable
    Open

        task_cluster: list[tuple[str, str]],

    Emitted when a subscripted value doesn't support subscription (i.e. doesn't define getitem method or class_getitem for a class).

    No name 'annotations' in module '__future__'
    Open

    from __future__ import annotations

    Used when a name cannot be found in a module.

    Value 'list' is unsubscriptable
    Open

        job_cluster: list[tuple[str, str]],

    Emitted when a subscripted value doesn't support subscription (i.e. doesn't define getitem method or class_getitem for a class).

    Value 'list' is unsubscriptable
    Open

        library: list[str],

    Emitted when a subscripted value doesn't support subscription (i.e. doesn't define getitem method or class_getitem for a class).

    Value 'tuple' is unsubscriptable
    Open

        job_cluster: list[tuple[str, str]],

    Emitted when a subscripted value doesn't support subscription (i.e. doesn't define getitem method or class_getitem for a class).

    Missing module docstring
    Open

    from __future__ import annotations

    Used when a module has no docstring.Empty modules do not require a docstring.

    There are no issues that match your filters.

    Category
    Status