Skip to content

Commit

Permalink
format source file
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosmarxm committed Mar 2, 2022
1 parent 4b038fc commit 216d99b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

from abc import ABC
from base64 import b64encode
from datetime import datetime
from typing import Any, Iterable, List, Mapping, MutableMapping, Optional, Tuple
from urllib.parse import urljoin
from datetime import datetime

import requests
from airbyte_cdk.sources import AbstractSource
Expand All @@ -15,6 +15,7 @@
from airbyte_cdk.sources.streams.http.auth import TokenAuthenticator
from airbyte_cdk.sources.streams.http.exceptions import RequestBodyException


# Basic full refresh stream
class ChartmogulStream(HttpStream, ABC):
url_base = "https://api.chartmogul.com"
Expand Down

1 comment on commit 216d99b

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SonarQube Report

SonarQube report for Airbyte Connectors Source Chartmogul(#10810)

Measures

Name Value Name Value Name Value
Duplicated Blocks 0 Coverage 85.1 Code Smells 8
Lines to Cover 87 Lines of Code 108 Security Rating A
Vulnerabilities 0 Reliability Rating A Duplicated Lines (%) 0.0
Quality Gate Status OK Bugs 0 Blocker Issues 0
Critical Issues 0 Major Issues 0 Minor Issues 8

Detected Issues

Rule File Description Message
python:mypy_arg_type (MINOR) source_chartmogul/source.py:145 Check argument types in calls Argument "start_date" to "CustomerCount" has incompatible type "Optional[Any]"; expected "str" . Code line: ... CustomerCount(authenticator=auth, start_date=config.get("start_dat...
python:mypy_arg_type (MINOR) source_chartmogul/source.py:145 Check argument types in calls Argument "interval" to "CustomerCount" has incompatible type "Optional[Any]"; expected "str" . Code line: ...h, start_date=config.get("start_date"), interval=config.get("interval"...
python:mypy_arg_type (MINOR) source_chartmogul/source.py:146 Check argument types in calls Argument "start_date" to "Activities" has incompatible type "Optional[Any]"; expected "str" . Code line: ... Activities(authenticator=auth, start_date=config.get("start_dat...
python:mypy_import (MINOR) source_chartmogul/source.py:11 Require that imported module can be found or has stubs Library stubs not installed for "requests" (or incompatible with Python 3.7) . Code line: import requests
python:mypy_valid_type (MINOR) source_chartmogul/source.py:38 Check that type (annotation) is valid Function "builtins.any" is not valid as a type . Code line: ...e: Mapping[str, Any], stream_slice: Mapping[str, any] = None, next_pag...
python:mypy_valid_type (MINOR) source_chartmogul/source.py:61 Check that type (annotation) is valid Function "builtins.any" is not valid as a type . Code line: ...e: Mapping[str, Any], stream_slice: Mapping[str, any] = None, next_pag...
python:mypy_var_annotated (MINOR) source_chartmogul/source.py:63 Require variable annotation if type can't be inferred Need type annotation for "params" (hint: "params: Dict[, ] = ...") . Code line: params = {}
python:mypy_valid_type (MINOR) source_chartmogul/source.py:131 Check that type (annotation) is valid Function "builtins.any" is not valid as a type . Code line: def check_connection(self, logger, config) -> Tuple[bool, any]:

Coverage (85.1%)

File Coverage File Coverage
source_chartmogul/init.py 100.0 source_chartmogul/source.py 84.7

Please sign in to comment.