Skip to content

Commit

Permalink
auto-bump connector version
Browse files Browse the repository at this point in the history
  • Loading branch information
octavia-squidington-iii committed May 12, 2022
1 parent 69459ba commit f629c39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@
- name: HubSpot
sourceDefinitionId: 36c891d9-4bd9-43ac-bad2-10e12756272c
dockerRepository: airbyte/source-hubspot
dockerImageTag: 0.1.58
dockerImageTag: 0.1.59
documentationUrl: https://docs.airbyte.io/integrations/sources/hubspot
icon: hubspot.svg
sourceType: api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3536,7 +3536,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-hubspot:0.1.58"
- dockerImage: "airbyte/source-hubspot:0.1.59"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/hubspot"
connectionSpecification:
Expand Down

1 comment on commit f629c39

@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 Hubspot(#12711)

Measures

Name Value Name Value Name Value
Quality Gate Status OK Duplicated Blocks 0 Lines to Cover 809
Reliability Rating A Duplicated Lines (%) 0.0 Coverage 89.4
Lines of Code 1184 Security Rating A Bugs 0
Vulnerabilities 0 Code Smells 86 Blocker Issues 0
Critical Issues 1 Major Issues 8 Minor Issues 77

Detected Issues

Rule File Description Message
python:mypy_import (MINOR) source_hubspot/source.py:9 Require that imported module can be found or has stubs Library stubs not installed for "requests" (or incompatible with Python 3.9) . Code line: import requests
python:mypy_no_any_return (MINOR) source_hubspot/source.py:80 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "Tuple[bool, Optional[Any]]" . Code line: return self.check_scopes(response.json())
python:S112 (MAJOR) source_hubspot/streams.py:148 "Exception" and "BaseException" should not be raised Replace this generic exception class with a more specific one.
python:mypy_import (MINOR) source_hubspot/streams.py:16 Require that imported module can be found or has stubs Library stubs not installed for "requests" (or incompatible with Python 3.9) . Code line: import requests
python:mypy_assignment (MINOR) source_hubspot/streams.py:955 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "id"
python:mypy_assignment (MINOR) source_hubspot/streams.py:999 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "canonical-vid"
python:mypy_assignment (MINOR) source_hubspot/streams.py:1029 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "id"
python:mypy_assignment (MINOR) source_hubspot/streams.py:1041 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "pipelineId"
python:mypy_assignment (MINOR) source_hubspot/streams.py:1053 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "id"
python:mypy_assignment (MINOR) source_hubspot/streams.py:1066 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "id"
python:mypy_assignment (MINOR) source_hubspot/streams.py:1079 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "id"
python:mypy_assignment (MINOR) source_hubspot/streams.py:1161 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "id"
python:mypy_assignment (MINOR) source_hubspot/streams.py:1233 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "id"
python:mypy_assignment (MINOR) source_hubspot/streams.py:1244 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "id"
python:mypy_assignment (MINOR) source_hubspot/streams.py:1311 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "id"
python:mypy_assignment (MINOR) source_hubspot/streams.py:1318 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "id"
python:mypy_assignment (MINOR) source_hubspot/streams.py:1325 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "id"
python:mypy_assignment (MINOR) source_hubspot/streams.py:1332 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "id"
python:mypy_assignment (MINOR) source_hubspot/streams.py:1339 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "id"
python:mypy_assignment (MINOR) source_hubspot/streams.py:1346 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "id"
python:mypy_assignment (MINOR) source_hubspot/streams.py:1353 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "id"
python:mypy_assignment (MINOR) source_hubspot/streams.py:1360 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "id"
python:mypy_assignment (MINOR) source_hubspot/streams.py:1366 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "id"
python:mypy_assignment (MINOR) source_hubspot/streams.py:1371 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "id"
python:mypy_assignment (MINOR) source_hubspot/streams.py:1376 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "id"
python:mypy_assignment (MINOR) source_hubspot/streams.py:1382 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "id"
python:mypy_assignment (MINOR) source_hubspot/streams.py:1388 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "Stream" defined the type as "None") . Code line: primary_key = "id"
python:mypy_return (MINOR) source_hubspot/streams.py:371 Check that function always returns a value Missing return statement . Code line: def _convert_datetime_to_string(dt: pendulum.datetime, declared_fo...
python:mypy_no_any_return (MINOR) source_hubspot/streams.py:373 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "str" . Code line: return dt.to_date_string()
python:mypy_attr_defined (MINOR) source_hubspot/streams.py:373 Check that attribute exists pendulum.datetime? has no attribute "to_date_string" . Code line: return dt.to_date_string()
python:mypy_no_any_return (MINOR) source_hubspot/streams.py:375 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "str" . Code line: return dt.to_datetime_string()
python:mypy_attr_defined (MINOR) source_hubspot/streams.py:375 Check that attribute exists pendulum.datetime? has no attribute "to_datetime_string" . Code line: return dt.to_datetime_string()
python:mypy_attr_defined (MINOR) source_hubspot/streams.py:386 Check that attribute exists Module has no attribute "parse" . Code line: dt = pendulum.parse(field_value)
python:mypy_var_annotated (MINOR) source_hubspot/streams.py:63 Require variable annotation if type can't be inferred Need type annotation for "local_properties" (hint: "local_properties: List[] = ...") . Code line: local_properties = []
python:mypy_misc (MINOR) source_hubspot/streams.py:66 Miscellaneous other checks Incompatible types in "yield" (actual type "List[Any]", expected type "Tuple[str]") . Code line: yield local_properties
python:mypy_misc (MINOR) source_hubspot/streams.py:74 Miscellaneous other checks Incompatible types in "yield" (actual type "List[str]", expected type "Tuple[str]") . Code line: yield local_properties
python:mypy_no_any_return (MINOR) source_hubspot/streams.py:179 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "Union[MutableMapping[str, Any], List[MutableMapping[str, Any]]]" . Code line: return response.json()
python:mypy_return_value (MINOR) source_hubspot/streams.py:193 Check that return value is compatible with signature Incompatible return value type (got "Tuple[Union[MutableMapping[str, Any], List[MutableMapping[str, Any]]], Any]", expected "Tuple[Union[Mapping[str, Any], List[Mapping[str, Any]]], Any]") . Code line: return self._parse_and_handle_errors(response), response
python:S5890 (MAJOR) source_hubspot/streams.py:199 Values assigned to variables should match their type annotations Assign to "entity" a value of type "str" instead of "NoneType" or update its type hint.
python:mypy_assignment (MINOR) source_hubspot/streams.py:199 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "str") . Code line: entity: str = None
python:S5890 (MAJOR) source_hubspot/streams.py:200 Values assigned to variables should match their type annotations Assign to "updated_at_field" a value of type "str" instead of "NoneType" or update its type hint.
python:mypy_assignment (MINOR) source_hubspot/streams.py:200 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "str") . Code line: updated_at_field: str = None
python:mypy_assignment (MINOR) source_hubspot/streams.py:201 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "str") . Code line: created_at_field: str = None
python:S5890 (MAJOR) source_hubspot/streams.py:201 Values assigned to variables should match their type annotations Assign to "created_at_field" a value of type "str" instead of "NoneType" or update its type hint.
python:mypy_assignment (MINOR) source_hubspot/streams.py:203 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "str") . Code line: more_key: str = None
python:S5890 (MAJOR) source_hubspot/streams.py:203 Values assigned to variables should match their type annotations Assign to "more_key" a value of type "str" instead of "NoneType" or update its type hint.
python:mypy_no_any_return (MINOR) source_hubspot/streams.py:230 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "str" . Code line: return self.url
python:mypy_attr_defined (MINOR) source_hubspot/streams.py:235 Check that attribute exists Module has no attribute "parse" . Code line: self._start_date = pendulum.parse(start_date)
python:mypy_index (MINOR) source_hubspot/streams.py:237 Check indexing operations Value of type "Optional[Mapping[str, Any]]" is not indexable . Code line: if credentials["credentials_title"] == "API Key Credentials":
python:mypy_union_attr (MINOR) source_hubspot/streams.py:238 Check that attribute exists in each item of a union Item "None" of "Optional[Mapping[str, Any]]" has no attribute "get" . Code line: self._session.params["hapikey"] = credentials.get("api_key...
python:mypy_return (MINOR) source_hubspot/streams.py:240 Check that function always returns a value Missing return statement . Code line: def backoff_time(self, response: requests.Response) -> Optional[fl...
python:mypy_no_any_return (MINOR) source_hubspot/streams.py:256 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "Mapping[str, Any]" . Code line: return json_schema
python:mypy_arg_type (MINOR) source_hubspot/streams.py:265 Check argument types in calls Argument "stream_state" to "request_headers" of "Stream" has incompatible type "Optional[Mapping[str, Any]]"; expected "Mapping[str, Any]" . Code line: ...uest_headers = self.request_headers(stream_state=stream_state, stream_...
python:mypy_arg_type (MINOR) source_hubspot/streams.py:266 Check argument types in calls Argument "stream_state" to "request_params" of "Stream" has incompatible type "Optional[Mapping[str, Any]]"; expected "Mapping[str, Any]" . Code line: ...equest_params = self.request_params(stream_state=stream_state, stream_...
python:mypy_arg_type (MINOR) source_hubspot/streams.py:315 Check argument types in calls Argument "stream_state" to "parse_response" of "Stream" has incompatible type "Optional[Mapping[str, Any]]"; expected "Mapping[str, Any]" . Code line: ...._transform(self.parse_response(response, stream_state=stream_state)):
python:mypy_assignment (MINOR) source_hubspot/streams.py:351 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "Iterable[Any]", variable has type "List[Any]") . Code line: records = self._transform(self.parse_response(...
python:mypy_valid_type (MINOR) source_hubspot/streams.py:354 Check that type (annotation) is valid Incompatible types in assignment (expression has type "Iterable[Any]", variable has type "List[Any]") [assignment] records = self._filter_old_records(records)
python:mypy_valid_type (MINOR) source_hubspot/streams.py:442 Check that type (annotation) is valid "None" not callable [misc] casted_value = target_type(field_value)
python:S5806 (MAJOR) source_hubspot/streams.py:460 Builtins should not be shadowed by local variables Rename this variable; it shadows a builtin.
python:mypy_assignment (MINOR) source_hubspot/streams.py:478 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "DateTime", variable has type "Union[int, str]") . Code line: value = pendulum.from_timestamp(value / 1000.0)
python:mypy_attr_defined (MINOR) source_hubspot/streams.py:480 Check that attribute exists Module has no attribute "parse" . Code line: value = pendulum.parse(value)
python:S3776 (CRITICAL) source_hubspot/streams.py:548 Cognitive Complexity of functions should not be too high Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.
python:mypy_return (MINOR) source_hubspot/streams.py:548 Check that function always returns a value Missing return statement . Code line: def next_page_token(self, response: requests.Response) -> Optional...
python:mypy_return_value (MINOR) source_hubspot/streams.py:557 Check that return value is compatible with signature Return value expected . Code line: return
python:mypy_assignment (MINOR) source_hubspot/streams.py:584 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", target has type "List[str]") . Code line: field_props["format"] = field_format
python:mypy_misc (MINOR) source_hubspot/streams.py:588 Miscellaneous other checks Decorated property not supported . Code line: @Property
python:mypy_no_any_return (MINOR) source_hubspot/streams.py:635 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "Union[str, List[str]]" . Code line: return self.updated_at_field
python:mypy_assignment (MINOR) source_hubspot/streams.py:708 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "int", variable has type "Duration") . Code line: chunk_size = int(chunk_size.total_seconds() * 1000) if self.ne...
python:mypy_call_overload (MINOR) source_hubspot/streams.py:710 Check that an overload variant matches arguments No overload variant of "range" matches argument types "int", "int", "Duration" . Code line: for ts in range(start_ts, now_ts, chunk_size):
python:S5890 (MAJOR) source_hubspot/streams.py:737 Values assigned to variables should match their type annotations Assign to "last_modified_field" a value of type "str" instead of "NoneType" or update its type hint.
python:mypy_assignment (MINOR) source_hubspot/streams.py:737 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "str") . Code line: last_modified_field: str = None
python:S5890 (MAJOR) source_hubspot/streams.py:738 Values assigned to variables should match their type annotations Assign to "associations" a value of type "list[str]" instead of "NoneType" or update its type hint.
python:mypy_assignment (MINOR) source_hubspot/streams.py:738 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "List[str]") . Code line: associations: List[str] = None
python:mypy_arg_type (MINOR) source_hubspot/streams.py:786 Check argument types in calls Argument "stream_state" to "parse_response" of "Stream" has incompatible type "Optional[Mapping[str, Any]]"; expected "Mapping[str, Any]" . Code line: ...m(self.parse_response(raw_response, stream_state=stream_state, stream_...
python:mypy_attr_defined (MINOR) source_hubspot/streams.py:805 Check that attribute exists "_lru_cache_wrapper[Mapping[str, Any]]" has no attribute "keys" . Code line: properties_list = list(self.properties.keys())
python:mypy_assignment (MINOR) source_hubspot/streams.py:824 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "Iterable[Any]", variable has type "List[Any]") . Code line: records = self._filter_old_records(records)
python:mypy_assignment (MINOR) source_hubspot/streams.py:825 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "Iterable[MutableMapping[Any, Any]]", variable has type "List[Any]") . Code line: records = self._flat_associations(records)
python:mypy_return (MINOR) source_hubspot/streams.py:858 Check that function always returns a value Missing return statement . Code line: def next_page_token(self, response: requests.Response) -> Optional...
python:mypy_assignment (MINOR) source_hubspot/streams.py:884 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "Optional[str]", base class "Stream" defined the type as "str") . Code line: entity: Optional[str] = None
python:mypy_arg_type (MINOR) source_hubspot/streams.py:941 Check argument types in calls Argument 1 to "_flat_associations" of "Stream" has incompatible type "Iterable[Mapping[str, Any]]"; expected "Iterable[MutableMapping[Any, Any]]" . Code line: yield from self._flat_associations(records)
python:mypy_no_redef (MINOR) source_hubspot/streams.py:1081 Check that each name is defined once Name "url" already defined on line 1075 . Code line: @Property
python:mypy_index (MINOR) source_hubspot/streams.py:1181 Check indexing operations Value of type "Optional[Mapping[str, Any]]" is not indexable . Code line: return f"{self.url}/{stream_slice['form_id']}"
python:mypy_index (MINOR) source_hubspot/streams.py:1219 Check indexing operations Unsupported target for indexed assignment ("Mapping[str, Any]") . Code line: record["formId"] = stream_slice["form_id"]
python:mypy_index (MINOR) source_hubspot/streams.py:1219 Check indexing operations Value of type "Optional[Mapping[str, Any]]" is not indexable . Code line: record["formId"] = stream_slice["form_id"]
python:mypy_attr_defined (MINOR) source_hubspot/streams.py:1285 Check that attribute exists pendulum.datetime? has no attribute "to_datetime_string" . Code line: version["timestamp"] = self._field_to_datetime...
python:mypy_import (MINOR) source_hubspot/errors.py:6 Require that imported module can be found or has stubs Library stubs not installed for "requests" (or incompatible with Python 3.9) . Code line: from requests import HTTPError

Coverage (89.4%)

File Coverage File Coverage
source_hubspot/init.py 100.0 source_hubspot/errors.py 100.0
source_hubspot/source.py 71.3 source_hubspot/streams.py 91.5

Please sign in to comment.