Skip to content

Commit

Permalink
bump the version
Browse files Browse the repository at this point in the history
  • Loading branch information
Augan93 committed Feb 10, 2022
1 parent 10482b2 commit fcc8d02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-hubspot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ COPY source_hubspot ./source_hubspot
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.38
LABEL io.airbyte.version=0.1.39
LABEL io.airbyte.name=airbyte/source-hubspot
1 change: 1 addition & 0 deletions docs/integrations/sources/hubspot.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ If you are using Oauth, most of the streams require the appropriate [scopes](htt

| Version | Date | Pull Request | Subject |
|:--------|:-----------| :--- |:-----------------------------------------------------------------------------------------------------------------------------------------------|
| 0.1.39 | 2022-02-10 | [10055](https://github.com/airbytehq/airbyte/pull/10055) | Bug fix: reading not initialized stream |
| 0.1.38 | 2022-02-03 | [9786](https://github.com/airbytehq/airbyte/pull/9786) | Add new streams for engagements(calls, emails, meetings, notes and tasks) |
| 0.1.37 | 2022-01-27 | [9555](https://github.com/airbytehq/airbyte/pull/9555) | Getting form_submission for all forms |
| 0.1.36 | 2022-01-22 | [7784](https://github.com/airbytehq/airbyte/pull/7784) | Add Property History Stream |
Expand Down

1 comment on commit fcc8d02

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

Measures

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

Detected Issues

Rule File Description Message
python:isort_need_format (MINOR) source_hubspot/source.py Please run one of the commands: "isort <path_to_updated_folder>" or "./gradlew format" 1 code part(s) should be updated.
python:isort_need_format (MINOR) unit_tests/test_client.py Please run one of the commands: "isort <path_to_updated_folder>" or "./gradlew format" 1 code part(s) should be updated.
python:isort_need_format (MINOR) source_hubspot/client.py Please run one of the commands: "isort <path_to_updated_folder>" or "./gradlew format" 1 code part(s) should be updated.
python:mypy_no_untyped_def (MINOR) source_hubspot/source.py:16 Check that every function has an annotation Function is missing a return type annotation . Code line: def _read_stream(
python:isort_need_format (MINOR) source_hubspot/api.py Please run one of the commands: "isort <path_to_updated_folder>" or "./gradlew format" 1 code part(s) should be updated.
python:mypy_assignment (MINOR) source_hubspot/api.py:356 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "Iterable[Any]", variable has type "Iterator[Any]") . Code line: generator = self._filter_old_records(generator)
python:S2638 (CRITICAL) source_hubspot/api.py:495 Method overrides should not change contracts Add missing parameters filter_old_records.
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:886 Check that every function has an annotation Function is missing a type annotation . Code line: def init(self, **kwargs):
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:950 Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def list(self, fields) -> Iterable:
python:mypy_attr_defined (MINOR) source_hubspot/api.py:972 Check that attribute exists pendulum.datetime? has no attribute "to_datetime_string" . Code line: version["timestamp"] = self._field_to_datetime...
python:isort_need_format (MINOR) unit_tests/test_field_type_converting.py Please run one of the commands: "isort <path_to_updated_folder>" or "./gradlew format" 1 code part(s) should be updated.
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:96 Check that every function has an annotation Function is missing a type annotation . Code line: def retry_after_handler(fixed_retry_after=None, **kwargs):
python:mypy_valid_type (MINOR) source_hubspot/api.py:219 Check that type (annotation) is valid Function is missing a type annotation for one or more arguments [no-untyped-def] def list_records(self, fields) -> Iterable:
python:mypy_unreachable (MINOR) source_hubspot/api.py:337 Warn about unreachable statements or expressions Statement is unreachable . Code line: params.update(next_page_token)
python:mypy_valid_type (MINOR) source_hubspot/api.py:508 Check that type (annotation) is valid Function is missing a type annotation [no-untyped-def] def _update_state(self, latest_cursor):
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:542 Check that every function has an annotation Function is missing a return type annotation . Code line: def url(self):
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:545 Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def init(
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:571 Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def list_records(self, fields) -> Iterable:
python:S3776 (CRITICAL) source_hubspot/api.py:582 Cognitive Complexity of functions should not be too high Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed.
python:mypy_override (MINOR) source_hubspot/api.py:582 Check that method override is compatible with base class Signature of "read" incompatible with supertype "Stream" . Code line: def read(self, getter: Callable, params: Mapping[str, Any] = None)...
python:mypy_attr_defined (MINOR) source_hubspot/api.py:587 Check that attribute exists "_lru_cache_wrapper[Mapping[str, Any]]" has no attribute "keys" . Code line: properties_list = list(self.properties.keys())
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:651 Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def list_records(self, fields) -> Iterable:
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:678 Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def list_records(self, fields) -> Iterable:
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:726 Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def list_records(self, fields) -> Iterable:
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:751 Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def list_records(self, fields) -> Iterable:
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:763 Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def list_records(self, fields) -> Iterable:
python:mypy_no_redef (MINOR) source_hubspot/api.py:821 Check that each name is defined once Name "url" already defined on line 814 . Code line: @Property
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:822 Check that every function has an annotation Function is missing a return type annotation . Code line: def url(self):
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:833 Check that every function has an annotation Function is missing a type annotation . Code line: def state(self, value):
python:mypy_override (MINOR) source_hubspot/api.py:841 Check that method override is compatible with base class Signature of "read" incompatible with supertype "Stream" . Code line: def read(self, getter: Callable, params: Mapping[str, Any] = None)...
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:901 Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def list_records(self, fields) -> Iterable:
python:mypy_attr_defined (MINOR) source_hubspot/api.py:523 Check that attribute exists pendulum.duration? has no attribute "total_seconds" . Code line: chunk_size = int(chunk_size.total_seconds() * 1000) if self.ne...
flake8:E501 (MAJOR) source_hubspot/api.py:316 line too long (82 > 79 characters) line too long (148 > 140 characters)
flake8:E501 (MAJOR) source_hubspot/api.py:317 line too long (82 > 79 characters) line too long (164 > 140 characters)
python:isort_need_format (MINOR) main.py Please run one of the commands: "isort <path_to_updated_folder>" or "./gradlew format" 1 code part(s) should be updated.
python:mypy_var_annotated (MINOR) source_hubspot/api.py:59 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/api.py:62 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/api.py:70 Miscellaneous other checks Incompatible types in "yield" (actual type "List[str]", expected type "Tuple[str]") . Code line: yield local_properties
flake8:E501 (MAJOR) source_hubspot/api.py:315 line too long (82 > 79 characters) line too long (147 > 140 characters)
python:S3776 (CRITICAL) source_hubspot/api.py:389 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/api.py:389 Check that function always returns a value Missing return statement . Code line: def next_page_token(self, response: Union[Mapping[str, Any], List[...
python:mypy_return_value (MINOR) source_hubspot/api.py:396 Check that return value is compatible with signature Return value expected . Code line: return
python:S1192 (CRITICAL) unit_tests/test_client.py:43 String literals should not be duplicated Define a constant instead of duplicating this literal "2021-02-01T00:00:00Z" 4 times.
python:S112 (MAJOR) source_hubspot/api.py:141 "Exception" and "BaseException" should not be raised Replace this generic exception class with a more specific one.
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:640 Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def init(
python:S5806 (MAJOR) source_hubspot/api.py:277 Builtins should not be shadowed by local variables Rename this variable; it shadows a builtin.
flake8:E501 (MAJOR) unit_tests/test_client.py:80 line too long (82 > 79 characters) line too long (163 > 140 characters)
flake8:E501 (MAJOR) unit_tests/test_client.py:91 line too long (82 > 79 characters) line too long (197 > 140 characters)
python:mypy_assignment (MINOR) source_hubspot/api.py:423 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_no_untyped_def (MINOR) source_hubspot/api.py:759 Check that every function has an annotation Function is missing a type annotation . Code line: def init(self, **kwargs):
python:mypy_no_untyped_def (MINOR) integration_tests/acceptance.py:12 Check that every function has an annotation Function is missing a return type annotation . Code line: def connector_setup():
python:mypy_import (MINOR) source_hubspot/api.py:16 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_no_untyped_def (MINOR) source_hubspot/api.py:73 Check that every function has an annotation Function is missing a type annotation . Code line: def retry_connection_handler(**kwargs):
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:76 Check that every function has an annotation Function is missing a type annotation . Code line: def log_retry_attempt(details):
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:81 Check that every function has an annotation Function is missing a type annotation . Code line: def giveup_handler(exc):
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:99 Check that every function has an annotation Function is missing a type annotation . Code line: def sleep_on_ratelimit(_details):
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:107 Check that every function has an annotation Function is missing a type annotation . Code line: def log_giveup(_details):
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:149 Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def _parse_and_handle_errors(response) -> Union[MutableMapping[str...
python:mypy_no_any_return (MINOR) source_hubspot/api.py:172 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/api.py:184 Check that return value is compatible with signature Incompatible return value type (got "Union[MutableMapping[str, Any], List[MutableMapping[str, Any]]]", expected "Union[Mapping[str, Any], List[Mapping[str, Any]]]") . Code line: return self._parse_and_handle_errors(response)
python:S5890 (MAJOR) source_hubspot/api.py:190 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:S5890 (MAJOR) source_hubspot/api.py:191 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:S5890 (MAJOR) source_hubspot/api.py:192 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:S5890 (MAJOR) source_hubspot/api.py:194 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_untyped_def (MINOR) source_hubspot/api.py:205 Check that every function has an annotation Function is missing a return type annotation . Code line: def url(self):
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:208 Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def init(self, api: API, start_date: str = None, **kwargs):
python:mypy_attr_defined (MINOR) source_hubspot/api.py:210 Check that attribute exists Module has no attribute "parse" . Code line: self._start_date = pendulum.parse(start_date)
python:mypy_assignment (MINOR) source_hubspot/api.py:295 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/api.py:297 Check that attribute exists Module has no attribute "parse" . Code line: value = pendulum.parse(value)
python:mypy_misc (MINOR) source_hubspot/api.py:427 Miscellaneous other checks Decorated property not supported . Code line: @Property
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:473 Check that every function has an annotation Function is missing a return type annotation . Code line: def updated_at_field(self):
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:486 Check that every function has an annotation Function is missing a type annotation . Code line: def state(self, value):
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:491 Check that every function has an annotation Function is missing a type annotation . Code line: def init(self, *args, **kwargs):
python:mypy_override (MINOR) source_hubspot/api.py:495 Check that method override is compatible with base class Signature of "read" incompatible with supertype "Stream" . Code line: def read(self, getter: Callable, params: Mapping[str, Any] = None)...
flake8:E501 (MAJOR) source_hubspot/api.py:530 line too long (82 > 79 characters) line too long (146 > 140 characters)
python:mypy_no_untyped_def (MINOR) source_hubspot/api.py:636 Check that every function has an annotation Function is missing a return type annotation . Code line: def url(self):
python:mypy_import (MINOR) source_hubspot/client.py:10 Require that imported module can be found or has stubs Library stubs not installed for "requests" (or incompatible with Python 3.7) . Code line: from requests import HTTPError
python:mypy_no_untyped_def (MINOR) source_hubspot/client.py:36 Check that every function has an annotation Function is missing a type annotation . Code line: def init(self, start_date, credentials, **kwargs):
python:mypy_no_untyped_def (MINOR) source_hubspot/client.py:111 Check that every function has an annotation Function is missing a return type annotation . Code line: def set_stream_state(self, name: str, state: Any):
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.7) . Code line: from requests import HTTPError

Coverage (62.6%)

File Coverage File Coverage
integration_tests/acceptance.py 0.0 main.py 0.0
setup.py 0.0 source_hubspot/init.py 100.0
source_hubspot/api.py 76.2 source_hubspot/client.py 70.0
source_hubspot/errors.py 100.0 source_hubspot/source.py 91.7
unit_tests/test_client.py 0.0 unit_tests/test_field_type_converting.py 0.0

Please sign in to comment.