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 Apr 21, 2022
1 parent 110e704 commit 9e8a945
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 @@ -695,7 +695,7 @@
- name: Salesforce
sourceDefinitionId: b117307c-14b6-41aa-9422-947e34922962
dockerRepository: airbyte/source-salesforce
dockerImageTag: 1.0.3
dockerImageTag: 1.0.4
documentationUrl: https://docs.airbyte.io/integrations/sources/salesforce
icon: salesforce.svg
sourceType: api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7357,7 +7357,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-salesforce:1.0.3"
- dockerImage: "airbyte/source-salesforce:1.0.4"
spec:
documentationUrl: "https://docs.airbyte.com/integrations/sources/salesforce"
connectionSpecification:
Expand Down

5 comments on commit 9e8a945

@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 Google Sheets(#12230)

Measures

Name Value Name Value Name Value
Quality Gate Status OK Duplicated Blocks 0 Bugs 0
Security Rating A Coverage 63.4 Reliability Rating A
Lines of Code 349 Duplicated Lines (%) 0.0 Vulnerabilities 0
Lines to Cover 314 Code Smells 30 Blocker Issues 0
Critical Issues 1 Major Issues 5 Minor Issues 24

Detected Issues

Rule File Description Message
python:mypy_index (MINOR) google_sheets_source/google_sheets_source.py:45 Check indexing operations Value of type json? is not indexable . Code line: ... spreadsheet_id = Helpers.get_spreadsheet_id(config["spreadsheet_i...
python:mypy_index (MINOR) google_sheets_source/google_sheets_source.py:97 Check indexing operations Value of type json? is not indexable . Code line: ... spreadsheet_id = Helpers.get_spreadsheet_id(config["spreadsheet_i...
python:mypy_index (MINOR) google_sheets_source/google_sheets_source.py:127 Check indexing operations Value of type json? is not indexable . Code line: ... spreadsheet_id = Helpers.get_spreadsheet_id(config["spreadsheet_i...
python:mypy_return (MINOR) google_sheets_source/helpers.py:201 Check that function always returns a value Missing return statement . Code line: def get_spreadsheet_id(id_or_url: str) -> str:
python:mypy_union_attr (MINOR) google_sheets_source/helpers.py:205 Check that attribute exists in each item of a union Item "None" of "Optional[Match[str]]" has no attribute "group" . Code line: if m.group(2):
python:mypy_union_attr (MINOR) google_sheets_source/helpers.py:206 Check that attribute exists in each item of a union Item "None" of "Optional[Match[str]]" has no attribute "group" . Code line: return m.group(2)
python:mypy_union_attr (MINOR) google_sheets_source/helpers.py:164 Check that attribute exists in each item of a union Item "None" of "Optional[SheetProperties]" has no attribute "title" . Code line: return {sheet.properties.title: sheet.properties.gridPropertie...
python:mypy_misc (MINOR) google_sheets_source/helpers.py:164 Miscellaneous other checks Key expression in dictionary comprehension has incompatible type "Union[str, None, Any]"; expected type "str" . Code line: return {sheet.properties.title: sheet.properties.gridPropertie...
python:mypy_union_attr (MINOR) google_sheets_source/helpers.py:164 Check that attribute exists in each item of a union Item "SheetProperties" of "Optional[SheetProperties]" has no attribute "gridProperties" . Code line: return {sheet.properties.title: sheet.properties.gridPropertie...
python:mypy_union_attr (MINOR) google_sheets_source/helpers.py:164 Check that attribute exists in each item of a union Item "None" of "Optional[SheetProperties]" has no attribute "gridProperties" . Code line: return {sheet.properties.title: sheet.properties.gridPropertie...
python:mypy_syntax (MINOR) google_sheets_source/helpers.py:66 Report syntax errors Syntax error in type annotation . Code line: ..._and_duplicates(header_row_values: List[str]) -> (List[str], List[str]...
python:S3776 (CRITICAL) google_sheets_source/google_sheets_source.py:121 Cognitive Complexity of functions should not be too high Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed.
python:mypy_import (MINOR) google_sheets_source/client.py:10 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 codes as status_codes
python:mypy_import (MINOR) google_sheets_source/google_sheets_source.py:20 Require that imported module can be found or has stubs Library stubs not installed for "requests.status_codes" (or incompatible with Python 3.9) . Code line: from requests.status_codes import codes as status_codes
python:mypy_valid_type (MINOR) google_sheets_source/google_sheets_source.py:38 Check that type (annotation) is valid Module "json" is not valid as a type . Code line: ... def check(self, logger: AirbyteLogger, config: json) -> AirbyteConne...
python:mypy_valid_type (MINOR) google_sheets_source/google_sheets_source.py:95 Check that type (annotation) is valid Module "json" is not valid as a type . Code line: ...ef discover(self, logger: AirbyteLogger, config: json) -> AirbyteCatal...
python:mypy_valid_type (MINOR) google_sheets_source/google_sheets_source.py:122 Check that type (annotation) is valid Module "json" is not valid as a type . Code line: self, logger: AirbyteLogger, config: json, catalog: Configured...
python:mypy_valid_type (MINOR) google_sheets_source/google_sheets_source.py:122 Check that type (annotation) is valid Function "builtins.any" is not valid as a type . Code line: ...config: json, catalog: ConfiguredAirbyteCatalog, state: Dict[str, any]
python:S112 (MAJOR) google_sheets_source/google_sheets_source.py:119 "Exception" and "BaseException" should not be raised Replace this generic exception class with a more specific one.
python:S5806 (MAJOR) google_sheets_source/google_sheets_source.py:143 Builtins should not be shadowed by local variables Rename this variable; it shadows a builtin.
python:mypy_misc (MINOR) google_sheets_source/helpers.py:90 Miscellaneous other checks List comprehension has incompatible type List[Union[str, None, Any]]; expected List[str] . Code line: return [value.formattedValue for value in row_data.values]
python:mypy_union_attr (MINOR) google_sheets_source/helpers.py:90 Check that attribute exists in each item of a union Item "None" of "Optional[List[CellData]]" has no attribute "iter" (not iterable) . Code line: return [value.formattedValue for value in row_data.values]
python:S112 (MAJOR) google_sheets_source/helpers.py:99 "Exception" and "BaseException" should not be raised Replace this generic exception class with a more specific one.
python:mypy_arg_type (MINOR) google_sheets_source/helpers.py:102 Check argument types in calls Argument 1 to "len" has incompatible type "Optional[List[GridData]]"; expected "Sized" . Code line: if len(range_data) != 1:
python:S112 (MAJOR) google_sheets_source/helpers.py:103 "Exception" and "BaseException" should not be raised Replace this generic exception class with a more specific one.
python:mypy_index (MINOR) google_sheets_source/helpers.py:105 Check indexing operations Value of type "Optional[List[GridData]]" is not indexable . Code line: all_row_data = range_data[0].rowData
python:S112 (MAJOR) google_sheets_source/helpers.py:107 "Exception" and "BaseException" should not be raised Replace this generic exception class with a more specific one.
python:mypy_var_annotated (MINOR) google_sheets_source/helpers.py:142 Require variable annotation if type can't be inferred Need type annotation for "available_sheets_to_column_index_to_name" . Code line: available_sheets_to_column_index_to_name = defaultdict(dict)
python:mypy_union_attr (MINOR) google_sheets_source/helpers.py:157 Check that attribute exists in each item of a union Item "None" of "Optional[SheetProperties]" has no attribute "title" . Code line: return [sheet.properties.title for sheet in spreadsheet_metada...
python:mypy_misc (MINOR) google_sheets_source/helpers.py:157 Miscellaneous other checks List comprehension has incompatible type List[Union[str, None, Any]]; expected List[str] . Code line: return [sheet.properties.title for sheet in spreadsheet_metada...

Coverage (63.4%)

File Coverage File Coverage
google_sheets_source/init.py 100.0 google_sheets_source/client.py 77.3
google_sheets_source/google_sheets_source.py 18.4 google_sheets_source/helpers.py 81.3
google_sheets_source/models/init.py 100.0 google_sheets_source/models/spreadsheet.py 100.0
google_sheets_source/models/spreadsheet_values.py 100.0

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

Measures

Name Value Name Value Name Value
Quality Gate Status OK Reliability Rating A Code Smells 85
Coverage 91.3 Duplicated Blocks 0 Duplicated Lines (%) 0.0
Lines to Cover 784 Vulnerabilities 0 Security Rating A
Lines of Code 1137 Bugs 0 Blocker Issues 0
Critical Issues 1 Major Issues 8 Minor Issues 76

Detected Issues

Rule File Description Message
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:946 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:990 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:1020 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:1032 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:1044 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:1057 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:1070 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:1152 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:1224 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:1235 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:1302 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:1309 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:1316 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:1323 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:1330 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:1337 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:1344 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:1351 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:1357 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:1362 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:1367 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:1373 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:1378 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:362 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:364 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:364 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:366 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:366 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:377 Check that attribute exists Module has no attribute "parse" . Code line: dt = pendulum.parse(field_value)
python:mypy_import (MINOR) source_hubspot/source.py:15 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
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: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: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: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_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: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:348 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(resp...
python:mypy_valid_type (MINOR) source_hubspot/streams.py:351 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:433 Check that type (annotation) is valid "None" not callable [misc] casted_value = target_type(field_value)
python:S5806 (MAJOR) source_hubspot/streams.py:451 Builtins should not be shadowed by local variables Rename this variable; it shadows a builtin.
python:mypy_assignment (MINOR) source_hubspot/streams.py:469 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:471 Check that attribute exists Module has no attribute "parse" . Code line: value = pendulum.parse(value)
python:S3776 (CRITICAL) source_hubspot/streams.py:539 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:539 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:548 Check that return value is compatible with signature Return value expected . Code line: return
python:mypy_assignment (MINOR) source_hubspot/streams.py:575 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:579 Miscellaneous other checks Decorated property not supported . Code line: @Property
python:mypy_no_any_return (MINOR) source_hubspot/streams.py:626 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:699 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:701 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:mypy_assignment (MINOR) source_hubspot/streams.py:728 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:728 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:729 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:S5890 (MAJOR) source_hubspot/streams.py:729 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_arg_type (MINOR) source_hubspot/streams.py:777 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:796 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:815 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:816 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:849 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:875 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:932 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:1072 Check that each name is defined once Name "url" already defined on line 1066 . Code line: @Property
python:mypy_index (MINOR) source_hubspot/streams.py:1172 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:1210 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:1210 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:1276 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 (91.3%)

File Coverage File Coverage
source_hubspot/init.py 100.0 source_hubspot/errors.py 100.0
source_hubspot/source.py 82.6 source_hubspot/streams.py 92.1

@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 Stripe(#12230)

Measures

Name Value Name Value Name Value
Coverage 70.3 Duplicated Lines (%) 0.0 Code Smells 33
Security Rating A Lines to Cover 259 Duplicated Blocks 0
Lines of Code 309 Reliability Rating B Bugs 1
Vulnerabilities 0 Quality Gate Status OK Blocker Issues 0
Critical Issues 0 Major Issues 0 Minor Issues 34

Detected Issues

Rule File Description Message
python:mypy_override (MINOR) source_stripe/streams.py:254 Check that method override is compatible with base class Signature of "request_params" incompatible with supertype "StripeStream" . Code line: def request_params(self, stream_slice: Mapping[str, Any] = None, *...
python:S1226 (MINOR) source_stripe/streams.py:263 Function parameters initial values should not be ignored Introduce a new variable or use its initial value before reassigning 'stream_slice'.
python:mypy_assignment (MINOR) source_stripe/streams.py:309 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "Type[IncrementalStripeStream]", base class "StripeSubStream" defined the type as "StripeStream") . Code line: parent = Invoices
python:mypy_index (MINOR) source_stripe/streams.py:315 Check indexing operations Value of type "Optional[Mapping[str, Any]]" is not indexable . Code line: return f"invoices/{stream_slice[self.parent_id]}/lines"
python:mypy_assignment (MINOR) source_stripe/streams.py:388 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "Type[IncrementalStripeStream]", variable has type "StripeStream") . Code line: parent: StripeStream = Subscriptions
python:mypy_index (MINOR) source_stripe/streams.py:397 Check indexing operations Value of type "Optional[Mapping[str, Any]]" is not indexable . Code line: params["subscription"] = stream_slice[self.parent_id]
python:mypy_assignment (MINOR) source_stripe/streams.py:441 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "Type[IncrementalStripeStream]", base class "StripeSubStream" defined the type as "StripeStream") . Code line: parent = Customers
python:mypy_index (MINOR) source_stripe/streams.py:447 Check indexing operations Value of type "Optional[Mapping[str, Any]]" is not indexable . Code line: return f"customers/{stream_slice[self.parent_id]}/sources"
python:mypy_override (MINOR) source_stripe/streams.py:449 Check that method override is compatible with base class Signature of "request_params" incompatible with supertype "StripeStream" . Code line: def request_params(self, stream_slice: Mapping[str, Any] = None, *...
python:mypy_arg_type (MINOR) source_stripe/source.py:72 Check argument types in calls Argument 1 to "PromotionCodes" has incompatible type "**Dict[str, Optional[Any]]"; expected "int" . Code line: PromotionCodes(**incremental_args),
python:mypy_index (MINOR) source_stripe/streams.py:474 Check indexing operations Value of type "Optional[Mapping[str, Any]]" is not indexable . Code line: return f"checkout/sessions/{stream_slice['checkout_session_id'...
python:mypy_override (MINOR) source_stripe/streams.py:481 Check that method override is compatible with base class Signature of "request_params" incompatible with supertype "StripeStream" . Code line: def request_params(self, stream_slice: Mapping[str, Any] = None, *...
python:mypy_arg_type (MINOR) source_stripe/source.py:55 Check argument types in calls Argument 1 to "BalanceTransactions" has incompatible type "**Dict[str, Optional[Any]]"; expected "int" . Code line: BalanceTransactions(**incremental_args),
python:mypy_arg_type (MINOR) source_stripe/source.py:57 Check argument types in calls Argument 1 to "Charges" has incompatible type "**Dict[str, Optional[Any]]"; expected "int" . Code line: Charges(**incremental_args),
python:mypy_arg_type (MINOR) source_stripe/source.py:60 Check argument types in calls Argument 1 to "Coupons" has incompatible type "**Dict[str, Optional[Any]]"; expected "int" . Code line: Coupons(**incremental_args),
python:mypy_arg_type (MINOR) source_stripe/source.py:62 Check argument types in calls Argument 1 to "Customers" has incompatible type "**Dict[str, Optional[Any]]"; expected "int" . Code line: Customers(**incremental_args),
python:mypy_arg_type (MINOR) source_stripe/source.py:63 Check argument types in calls Argument 1 to "Disputes" has incompatible type "**Dict[str, Optional[Any]]"; expected "int" . Code line: Disputes(**incremental_args),
python:mypy_arg_type (MINOR) source_stripe/source.py:64 Check argument types in calls Argument 1 to "Events" has incompatible type "**Dict[str, Optional[Any]]"; expected "int" . Code line: Events(**incremental_args),
python:mypy_arg_type (MINOR) source_stripe/source.py:65 Check argument types in calls Argument 1 to "InvoiceItems" has incompatible type "**Dict[str, Optional[Any]]"; expected "int" . Code line: InvoiceItems(**incremental_args),
python:mypy_arg_type (MINOR) source_stripe/source.py:67 Check argument types in calls Argument 1 to "Invoices" has incompatible type "**Dict[str, Optional[Any]]"; expected "int" . Code line: Invoices(**incremental_args),
python:mypy_arg_type (MINOR) source_stripe/source.py:68 Check argument types in calls Argument 1 to "PaymentIntents" has incompatible type "**Dict[str, Optional[Any]]"; expected "int" . Code line: PaymentIntents(**incremental_args),
python:mypy_arg_type (MINOR) source_stripe/source.py:69 Check argument types in calls Argument 1 to "Payouts" has incompatible type "**Dict[str, Optional[Any]]"; expected "int" . Code line: Payouts(**incremental_args),
python:mypy_arg_type (MINOR) source_stripe/source.py:70 Check argument types in calls Argument 1 to "Plans" has incompatible type "**Dict[str, Optional[Any]]"; expected "int" . Code line: Plans(**incremental_args),
python:mypy_arg_type (MINOR) source_stripe/source.py:71 Check argument types in calls Argument 1 to "Products" has incompatible type "**Dict[str, Optional[Any]]"; expected "int" . Code line: Products(**incremental_args),
python:mypy_arg_type (MINOR) source_stripe/source.py:73 Check argument types in calls Argument 1 to "Refunds" has incompatible type "**Dict[str, Optional[Any]]"; expected "int" . Code line: Refunds(**incremental_args),
python:mypy_arg_type (MINOR) source_stripe/source.py:75 Check argument types in calls Argument 1 to "Subscriptions" has incompatible type "**Dict[str, Optional[Any]]"; expected "int" . Code line: Subscriptions(**incremental_args),
python:mypy_arg_type (MINOR) source_stripe/source.py:76 Check argument types in calls Argument 1 to "Transfers" has incompatible type "**Dict[str, Optional[Any]]"; expected "int" . Code line: Transfers(**incremental_args),
python:mypy_import (MINOR) source_stripe/streams.py:11 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_return (MINOR) source_stripe/streams.py:25 Check that function always returns a value Missing return statement . Code line: def next_page_token(self, response: requests.Response) -> Optional...
python:mypy_type_var (MINOR) source_stripe/streams.py:80 Check that type variable values are valid Value of type variable "SupportsRichComparisonT" of "max" cannot be "Optional[Any]" . Code line: return {self.cursor_field: max(latest_record.get(self.cursor_f...
python:mypy_override (MINOR) source_stripe/streams.py:82 Check that method override is compatible with base class Signature of "request_params" incompatible with supertype "StripeStream" . Code line: def request_params(self, stream_state: Mapping[str, Any] = None, *...
python:mypy_index (MINOR) source_stripe/streams.py:145 Check indexing operations Value of type "Optional[Mapping[str, Any]]" is not indexable . Code line: customer_id = stream_slice["customer_id"]
python:mypy_override (MINOR) source_stripe/streams.py:395 Check that method override is compatible with base class Signature of "request_params" incompatible with supertype "StripeStream" . Code line: def request_params(self, stream_slice: Mapping[str, Any] = None, *...
python:mypy_no_any_return (MINOR) source_stripe/streams.py:452 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "MutableMapping[str, Any]" . Code line: return params

Coverage (70.3%)

File Coverage File Coverage
source_stripe/init.py 100.0 source_stripe/source.py 50.0
source_stripe/streams.py 71.9

@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 Exchange Rates(#12230)

Measures

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

Detected Issues

Rule File Description Message
python:mypy_arg_type (MINOR) source_exchange_rates/source.py:56 Check argument types in calls Argument 2 to "chunk_date_range" has incompatible type "Optional[bool]"; expected "bool" . Code line: return chunk_date_range(start_date, self.ignore_weekends)
python:mypy_no_any_return (MINOR) source_exchange_rates/source.py:36 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "str" . Code line: return stream_slice[self.date_field_name]
python:mypy_index (MINOR) source_exchange_rates/source.py:36 Check indexing operations Value of type "Optional[Mapping[str, Any]]" is not indexable . Code line: return stream_slice[self.date_field_name]
python:mypy_import (MINOR) source_exchange_rates/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

Coverage (0.0%)

File Coverage File Coverage
source_exchange_rates/init.py 0.0 source_exchange_rates/source.py 0.0

@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 Salesforce(#12230)

Measures

Name Value Name Value Name Value
Quality Gate Status OK Lines to Cover 547 Security Rating A
Lines of Code 853 Bugs 0 Coverage 88.1
Vulnerabilities 0 Duplicated Blocks 0 Duplicated Lines (%) 0.0
Code Smells 5 Reliability Rating A Blocker Issues 0
Critical Issues 0 Major Issues 0 Minor Issues 5

Detected Issues

Rule File Description Message
python:mypy_return_value (MINOR) source_salesforce/streams.py:279 Check that return value is compatible with signature Incompatible return value type (got "str", expected "PathLike[Any]") . Code line: return tmp_file
python:mypy_arg_type (MINOR) source_salesforce/streams.py:290 Check argument types in calls Argument 1 to "open" has incompatible type "Optional[str]"; expected "Union[Union[str, bytes, PathLike[str], PathLike[bytes]], int]" . Code line: with open(path, "r", encoding="utf-8") as data:
python:mypy_arg_type (MINOR) source_salesforce/streams.py:300 Check argument types in calls Argument 2 to "TmpFileIOError" has incompatible type "OSError"; expected "Optional[str]" . Code line: ...red while reading tmp data. Called: {path}. Stream: {self.name}", ioe)
python:mypy_arg_type (MINOR) source_salesforce/streams.py:303 Check argument types in calls Argument 1 to "remove" has incompatible type "Optional[str]"; expected "Union[str, bytes, PathLike[str], PathLike[bytes]]" . Code line: os.remove(path)
python:mypy_arg_type (MINOR) source_salesforce/streams.py:364 Check argument types in calls Argument 1 to "read_with_chunks" of "BulkSalesforceStream" has incompatible type "PathLike[Any]"; expected "Optional[str]" . Code line: ... for count, record in self.read_with_chunks(self.download_data(ur...

Coverage (88.1%)

File Coverage File Coverage
source_salesforce/init.py 100.0 source_salesforce/api.py 90.7
source_salesforce/exceptions.py 87.5 source_salesforce/rate_limiting.py 86.4
source_salesforce/source.py 92.0 source_salesforce/streams.py 85.5
source_salesforce/utils.py 100.0

Please sign in to comment.