Skip to content

Commit

Permalink
Bump connector version in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
grishick committed Mar 25, 2022
1 parent 656b9d3 commit 892a5d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ COPY google_sheets_source ./google_sheets_source
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.2.9
LABEL io.airbyte.version=0.2.10
LABEL io.airbyte.name=airbyte/source-google-sheets

1 comment on commit 892a5d8

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

Measures

Name Value Name Value Name Value
Duplicated Lines (%) 0.0 Security Rating A Lines to Cover 11
Bugs 0 Duplicated Blocks 0 Coverage 72.7
Code Smells 6 Quality Gate Status OK Vulnerabilities 0
Lines of Code 347 Reliability Rating A Blocker Issues 0
Critical Issues 1 Major Issues 5 Minor Issues 27

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:198 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:202 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:203 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:161 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:161 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:161 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:161 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:63 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.7) . 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.7) . 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:mypy_index (MINOR) google_sheets_source/google_sheets_source.py Check indexing operations Value of type json? is not indexable . Code line: spreadsheet_id = config["spreadsheet_id"]
python:mypy_index (MINOR) google_sheets_source/google_sheets_source.py Check indexing operations Value of type json? is not indexable . Code line: spreadsheet_id = config["spreadsheet_id"]
python:mypy_index (MINOR) google_sheets_source/google_sheets_source.py Check indexing operations Value of type json? is not indexable . Code line: spreadsheet_id = config["spreadsheet_id"]
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:87 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:87 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:96 "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:99 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:100 "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:102 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:104 "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:139 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:154 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:154 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 (72.7%)

File Coverage File Coverage
google_sheets_source/init.py 100.0 google_sheets_source/client.py 72.2
google_sheets_source/google_sheets_source.py 17.6 google_sheets_source/helpers.py 81.0
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

Please sign in to comment.