You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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])...
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"]
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]
"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...
892a5d8
There was a problem hiding this comment.
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
Detected Issues
Coverage (72.7%)