Showing 66 of 76 total issues
Function generate_databricks_job_command
has 16 arguments (exceeds 4 allowed). Consider refactoring. Open
def generate_databricks_job_command(
Missing module docstring Open
from typing import Dict, Optional, Sequence
- Read upRead up
- Exclude checks
Used when a module has no docstring.Empty modules do not require a docstring.
Variable name f
doesn't conform to snake_case naming style Open
with open(pathlib.Path.cwd().joinpath("dbt_project.yml"), "r") as f:
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Missing module docstring Open
import click
- Read upRead up
- Exclude checks
Used when a module has no docstring.Empty modules do not require a docstring.
Missing module docstring Open
import json
- Read upRead up
- Exclude checks
Used when a module has no docstring.Empty modules do not require a docstring.
Missing module docstring Open
import pathlib
- Read upRead up
- Exclude checks
Used when a module has no docstring.Empty modules do not require a docstring.
Missing module docstring Open
import pathlib
- Read upRead up
- Exclude checks
Used when a module has no docstring.Empty modules do not require a docstring.
Missing module docstring Open
import io
- Read upRead up
- Exclude checks
Used when a module has no docstring.Empty modules do not require a docstring.
Missing function or method docstring Open
def publish_package(package_path: pathlib.Path, key_path: str, env: str) -> None:
- Read upRead up
- Exclude checks
Used when a function or method has no docstring.Some special methods like init do not require a docstring.
Missing module docstring Open
import shutil
- Read upRead up
- Exclude checks
Used when a module has no docstring.Empty modules do not require a docstring.
Import outside toplevel (docker.errors) Open
import docker.errors
- Read upRead up
- Exclude checks
Used when an import statement is used anywhere other than the module toplevel. Move this import to the top of the file.
Missing function or method docstring Open
def replace_image_settings(image_tag: str) -> None:
- Read upRead up
- Exclude checks
Used when a function or method has no docstring.Some special methods like init do not require a docstring.
Missing function or method docstring Open
help="Authorization OIDC ID token for a service account to communication with cloud services",
- Read upRead up
- Exclude checks
Used when a function or method has no docstring.Some special methods like init do not require a docstring.
Missing module docstring Open
import json
- Read upRead up
- Exclude checks
Used when a module has no docstring.Empty modules do not require a docstring.
Too many arguments (16/5) Open
@click.option(
- Read upRead up
- Exclude checks
Used when a function or method takes too many arguments.
Similar lines in 4 files Open
"""data_pipelines_cli module."""
- Read upRead up
- Exclude checks
Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication.
==datapipelinescli.clicommands.compile:132
==datapipelinescli.clicommands.run:20
==datapipelinescli.clicommands.seed:20
==datapipelinescli.clicommands.test:20
@click.option(
--env
,
default=local
,
type=str,
show_default=True,
Missing function or method docstring Open
def update_command(project_path: str, vcs_ref: str) -> None:
- Read upRead up
- Exclude checks
Used when a function or method has no docstring.Some special methods like init do not require a docstring.
Missing module docstring Open
import pathlib
- Read upRead up
- Exclude checks
Used when a module has no docstring.Empty modules do not require a docstring.
Similar lines in 2 files Open
"""data_pipelines_cli module."""
- Read upRead up
- Exclude checks
Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication. ==datapipelinescli.clicommands.generate.modelyaml:81 ==datapipelinescli.clicommands.generate.sourceyaml:38 outputfile, defaultflowstyle=False, sortkeys=False, ) echoinfo(f`Generated source schema file and saved in {outputpath}`)
Too many instance attributes (9/7) Open
class DeployCommand:
- Read upRead up
- Exclude checks
Used when class has too many instance attributes, try to reduce this to get a simpler (and so easier to use) class.