Skip to content

Commit

Permalink
fixed other actions from using @master to use @v0
Browse files Browse the repository at this point in the history
  • Loading branch information
bazarnov committed Mar 22, 2022
1 parent 6098d83 commit 73c00e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gke-kube-test-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
sudo apt-get install socat
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@master
uses: google-github-actions/setup-gcloud@v0
with:
project_id: ${{ secrets.GKE_TEST_PROJECT_ID }}
service_account_key: ${{ secrets.GKE_TEST_SA_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-external-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
environment: more-secrets
steps:
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@master
uses: google-github-actions/setup-gcloud@v0
with:
service_account_key: ${{ secrets.SPEC_CACHE_SERVICE_ACCOUNT_KEY }}
export_default_credentials: true
Expand Down

1 comment on commit 73c00e5

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

Measures

Name Value Name Value Name Value
Vulnerabilities 0 Security Rating A Reliability Rating A
Lines to Cover 53 Code Smells 10 Duplicated Blocks 0
Duplicated Lines (%) 0.0 Coverage 66.0 Bugs 0
Quality Gate Status ERROR Lines of Code 496 Blocker Issues 0
Critical Issues 0 Major Issues 24 Minor Issues 176

Detected Issues

Rule File Description Message
python:mypy_assignment (MINOR) source_shopify/source.py:63 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "Union[int, str]", target has type "int") . Code line: params[self.filter_field] = self.default_filter_field_valu...
python:mypy_override (MINOR) source_shopify/source.py Check that method override is compatible with base class Signature of "request_params" incompatible with supertype "ShopifyStream" . Code line: def request_params(
python:mypy_no_any_return (MINOR) source_shopify/source.py 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
python:black_need_format (MINOR) source_shopify/source.py Please run one of the commands: "black --config ./pyproject.toml <path_to_updated_folder>" or "./gradlew format" 2 code part(s) should be updated.
flake8:E302 (MAJOR) source_shopify/source.py expected 2 blank lines, found 0 expected 2 blank lines, found 1
python:mypy_operator (MINOR) source_shopify/source.py:165 Check that operator is valid for operands "object" not callable . Code line: return self.parent_stream_class(self.config) if self.parent_st...
python:mypy_index (MINOR) source_shopify/source.py:185 Check indexing operations Unsupported target for indexed assignment ("Mapping[str, Any]") . Code line: updated_state[self.parent_stream.name] = stream_state_cache.ca...
python:mypy_attr_defined (MINOR) source_shopify/source.py:185 Check that attribute exists "object" has no attribute "name" . Code line: updated_state[self.parent_stream.name] = stream_state_cache.ca...
python:mypy_attr_defined (MINOR) source_shopify/source.py:209 Check that attribute exists "object" has no attribute "name" . Code line: parent_stream_state = stream_state.get(self.parent_stream.name...
python:mypy_attr_defined (MINOR) source_shopify/source.py:211 Check that attribute exists "object" has no attribute "read_records" . Code line: for record in self.parent_stream.read_records(stream_state=par...
python:mypy_attr_defined (MINOR) source_shopify/source.py:214 Check that attribute exists "object" has no attribute "name" . Code line: stream_state_cache.cached_state[self.parent_stream.name] =...
python:mypy_attr_defined (MINOR) source_shopify/source.py:214 Check that attribute exists "object" has no attribute "get_updated_state" . Code line: ...te_cache.cached_state[self.parent_stream.name] = self.parent_stream.ge...
python:mypy_arg_type (MINOR) source_shopify/source.py:528 Check argument types in calls Argument 1 to "TenderTransactions" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: TenderTransactions(config),
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def path(self, **kwargs) -> str:
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def path(self, **kwargs) -> str:
flake8:W293 (MAJOR) source_shopify/source.py:41 blank line contains whitespace blank line contains whitespace
python:mypy_arg_type (MINOR) source_shopify/source.py:530 Check argument types in calls Argument 1 to "BalanceTransactions" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: BalanceTransactions(config),
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation . Code line: def get_user_scopes(config):
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation . Code line: def format_name(name):
python:mypy_arg_type (MINOR) source_shopify/source.py:493 Check argument types in calls Argument 1 to "Shop" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: response = list(Shop(config).read_records(sync_mode=None))
python:mypy_union_attr (MINOR) source_shopify/source.py:513 Check that attribute exists in each item of a union Item "None" of "Optional[List[str]]" has no attribute "iter" (not iterable) . Code line: for stream in SCOPES_MAPPING.get(user_scope["handle"])
python:isort_need_format (MINOR) unit_tests/conftest.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/unit_test.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_shopify/auth.py:34 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "Optional[Any]", variable has type "str") . Code line: auth_method: str = credentials.get("auth_method")
python:mypy_misc (MINOR) source_shopify/source.py:77 Miscellaneous other checks Incompatible types in "yield" (actual type "Iterable[MutableMapping[Any, Any]]", expected type "Mapping[Any, Any]") . Code line: yield self._transformer.transform(records)
python:mypy_assignment (MINOR) source_shopify/source.py:157 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "str") . Code line: nested_record_field_name: str = None
python:S5890 (MAJOR) source_shopify/source.py:157 Values assigned to variables should match their type annotations Assign to "nested_record_field_name" a value of type "str" instead of "NoneType" or update its type hint.
python:mypy_unreachable (MINOR) source_shopify/source.py:219 Warn about unreachable statements or expressions Statement is unreachable . Code line: if record.get(self.nested_substream):
python:mypy_union_attr (MINOR) source_shopify/source.py:232 Check that attribute exists in each item of a union Item "None" of "Optional[Mapping[str, Any]]" has no attribute "get" . Code line: slice_data = stream_slice.get(self.slice_key)
python:mypy_assignment (MINOR) source_shopify/source.py:350 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "ShopifySubstream" defined the type as "None") . Code line: nested_substream = "refunds"
python:mypy_index (MINOR) source_shopify/source.py:454 Check indexing operations Value of type "Optional[Mapping[str, Any]]" is not indexable . Code line: ...n(str(x[self.nested_record_field_name]) for x in stream_slice[self.sli...
python:mypy_index (MINOR) source_shopify/source.py:491 Check indexing operations Unsupported target for indexed assignment ("Mapping[str, Any]") . Code line: config["authenticator"] = ShopifyAuthenticator(config)
python:mypy_arg_type (MINOR) source_shopify/source.py:526 Check argument types in calls Argument 1 to "OrderRefunds" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: OrderRefunds(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:527 Check argument types in calls Argument 1 to "OrderRisks" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: OrderRisks(config),
python:mypy_no_untyped_def (MINOR) source_shopify/transform.py Check that every function has an annotation Function is missing a return type annotation . Code line: def _transform_string(value: Any):
python:mypy_no_any_return (MINOR) source_shopify/transform.py:100 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "Iterable[MutableMapping[Any, Any]]" . Code line: return self._transform_string(field)
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def path(self, **kwargs) -> str:
python:mypy_arg_type (MINOR) source_shopify/source.py:539 Check argument types in calls Argument 1 to "Shop" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: Shop(config),
python:mypy_attr_defined (MINOR) source_shopify/source.py Check that attribute exists "str" has no attribute "get" . Code line: if record.get(self.cursor_field, "") >= stream_state.g...
python:mypy_union_attr (MINOR) source_shopify/source.py:132 Check that attribute exists in each item of a union Item "str" of "Union[str, Any]" has no attribute "get" . Code line: if record.get(self.cursor_field, "") >= stream_state.g...
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -...
python:S5890 (MAJOR) source_shopify/source.py:447 Values assigned to variables should match their type annotations Assign to "parent_stream_class" a value of type "object" or update its type hint.
python:mypy_arg_type (MINOR) source_shopify/source.py:535 Check argument types in calls Argument 1 to "InventoryItems" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: InventoryItems(config),
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -...
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -...
python:S5890 (MAJOR) source_shopify/source.py:369 Values assigned to variables should match their type annotations Assign to "parent_stream_class" a value of type "object" or update its type hint.
python:S5890 (MAJOR) source_shopify/source.py:459 Values assigned to variables should match their type annotations Assign to "parent_stream_class" a value of type "object" or update its type hint.
python:mypy_index (MINOR) source_shopify/source.py:465 Check indexing operations Value of type "Optional[Mapping[str, Any]]" is not indexable . Code line: order_id = stream_slice[self.slice_key]
python:mypy_index (MINOR) source_shopify/source.py:475 Check indexing operations Value of type "Optional[Mapping[str, Any]]" is not indexable . Code line: order_id = stream_slice[self.slice_key]
python:mypy_arg_type (MINOR) source_shopify/source.py:537 Check argument types in calls Argument 1 to "FulfillmentOrders" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: FulfillmentOrders(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:538 Check argument types in calls Argument 1 to "Fulfillments" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: Fulfillments(config),
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation . Code line: def path(self, **kwargs):
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -...
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def parse_response(self, response: requests.Response, **kwargs) ->...
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation . Code line: def generate_key(record):
python:S5890 (MAJOR) source_shopify/source.py:427 Values assigned to variables should match their type annotations Assign to "parent_stream_class" a value of type "object" or update its type hint.
python:mypy_index (MINOR) source_shopify/source.py:432 Check indexing operations Value of type "Optional[Mapping[str, Any]]" is not indexable . Code line: location_id = stream_slice["location_id"]
python:mypy_arg_type (MINOR) source_shopify/source.py:534 Check argument types in calls Argument 1 to "Locations" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: Locations(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:536 Check argument types in calls Argument 1 to "InventoryLevels" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: InventoryLevels(config),
python:mypy_index (MINOR) source_shopify/source.py:506 Check indexing operations Unsupported target for indexed assignment ("Mapping[str, Any]") . Code line: config["authenticator"] = ShopifyAuthenticator(config)
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:isort_need_format (MINOR) unit_tests/test_cached_stream_state.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_control_rate_limit.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_transform.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_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def request_params(self, next_page_token: Mapping[str, Any] = None...
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def stream_slices(self, stream_state: Mapping[str, Any] = None, **...
python:mypy_operator (MINOR) source_shopify/source.py Check that operator is valid for operands "object" not callable . Code line: parent_stream = self.parent_stream_class(self.config)
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def read_records(
python:mypy_arg_type (MINOR) source_shopify/source.py:115 Check argument types in calls Argument 1 to "cache_stream_state" has incompatible type "Callable[[IncrementalShopifyStream, Optional[Mapping[str, Any]], Optional[Mapping[str, Any]], KwArg(Any)], Any]"; expected "EagerlyCachedStreamState" . Code line: @stream_state_cache.cache_stream_state
python:mypy_assignment (MINOR) source_shopify/source.py:155 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "str") . Code line: slice_key: str = None
python:S5890 (MAJOR) source_shopify/source.py:155 Values assigned to variables should match their type annotations Assign to "slice_key" a value of type "str" instead of "NoneType" or update its type hint.
python:S5890 (MAJOR) source_shopify/source.py:345 Values assigned to variables should match their type annotations Assign to "parent_stream_class" a value of type "object" or update its type hint.
python:S5890 (MAJOR) source_shopify/source.py:358 Values assigned to variables should match their type annotations Assign to "parent_stream_class" a value of type "object" or update its type hint.
python:S5890 (MAJOR) source_shopify/source.py:403 Values assigned to variables should match their type annotations Assign to "parent_stream_class" a value of type "object" or update its type hint.
python:S5890 (MAJOR) source_shopify/source.py:470 Values assigned to variables should match their type annotations Assign to "parent_stream_class" a value of type "object" or update its type hint.
python:mypy_no_untyped_def (MINOR) source_shopify/utils.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def stream_state_to_tmp(*args, state_object: Dict = cached_state, ...
python:mypy_no_untyped_def (MINOR) source_shopify/utils.py Check that every function has an annotation Function is missing a type annotation . Code line: def decorator(*args, **kwargs):
python:mypy_attr_defined (MINOR) source_shopify/utils.py:136 Check that attribute exists "object" has no attribute "name" . Code line: state_object[stream.name] = {stream.cursor_field: current_...
python:mypy_attr_defined (MINOR) source_shopify/utils.py:136 Check that attribute exists "object" has no attribute "cursor_field" . Code line: state_object[stream.name] = {stream.cursor_field: current_...
python:mypy_misc (MINOR) source_shopify/source.py:83 Miscellaneous other checks Incompatible types in "yield" (actual type "Iterable[MutableMapping[Any, Any]]", expected type "Mapping[Any, Any]") . Code line: yield self._transformer.transform(record)
python:mypy_no_untyped_def (MINOR) source_shopify/transform.py Check that every function has an annotation Function is missing a return type annotation . Code line: def _transform_array(self, array: List[Any], item_properties: Mapp...
python:mypy_no_untyped_def (MINOR) source_shopify/transform.py Check that every function has an annotation Function is missing a return type annotation . Code line: def _transform_object(self, record: MutableMapping[str, Any], prop...
python:mypy_no_untyped_def (MINOR) source_shopify/transform.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def init(self, schema: Mapping[str, Any], **kwargs):
python:mypy_no_untyped_def (MINOR) source_shopify/transform.py Check that every function has an annotation Function is missing a return type annotation . Code line: def _transform_number(value: Any):
python:mypy_return_value (MINOR) source_shopify/transform.py:45 Check that return value is compatible with signature Incompatible return value type (got "Optional[List[str]]", expected "List[str]") . Code line: return json_types.get(value_type)
python:mypy_no_any_return (MINOR) source_shopify/transform.py:54 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "str" . Code line: return schema_types
python:mypy_arg_type (MINOR) source_shopify/transform.py:95 Check argument types in calls Argument 1 to "_first_non_null_type" of "DataTypeEnforcer" has incompatible type "str"; expected "List[str]" . Code line: schema_type = self._first_non_null_type(schema_types)
python:mypy_no_any_return (MINOR) source_shopify/transform.py:98 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "Iterable[MutableMapping[Any, Any]]" . Code line: return self._transform_number(field)
python:mypy_no_any_return (MINOR) source_shopify/transform.py:103 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "Iterable[MutableMapping[Any, Any]]" . Code line: return self._transform_object(field, properties)
python:mypy_no_any_return (MINOR) source_shopify/transform.py:106 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "Iterable[MutableMapping[Any, Any]]" . Code line: return self._transform_array(field, properties)
python:mypy_no_any_return (MINOR) source_shopify/transform.py:107 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "Iterable[MutableMapping[Any, Any]]" . Code line: return field
python:mypy_arg_type (MINOR) source_shopify/source.py:518 Check argument types in calls Argument 1 to "Customers" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: Customers(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:519 Check argument types in calls Argument 1 to "Orders" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: Orders(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:520 Check argument types in calls Argument 1 to "DraftOrders" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: DraftOrders(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:521 Check argument types in calls Argument 1 to "Products" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: Products(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:522 Check argument types in calls Argument 1 to "AbandonedCheckouts" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: AbandonedCheckouts(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:523 Check argument types in calls Argument 1 to "Metafields" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: Metafields(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:524 Check argument types in calls Argument 1 to "CustomCollections" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: CustomCollections(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:525 Check argument types in calls Argument 1 to "Collects" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: Collects(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:529 Check argument types in calls Argument 1 to "Transactions" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: Transactions(config),
python:mypy_assignment (MINOR) source_shopify/source.py:63 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "Union[int, str]", target has type "int") . Code line: params[self.filter_field] = self.default_filter_field_valu...
python:mypy_override (MINOR) source_shopify/source.py Check that method override is compatible with base class Signature of "request_params" incompatible with supertype "ShopifyStream" . Code line: def request_params(
python:mypy_no_any_return (MINOR) source_shopify/source.py 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
python:black_need_format (MINOR) source_shopify/source.py Please run one of the commands: "black --config ./pyproject.toml <path_to_updated_folder>" or "./gradlew format" 2 code part(s) should be updated.
flake8:E302 (MAJOR) source_shopify/source.py expected 2 blank lines, found 0 expected 2 blank lines, found 1
python:mypy_operator (MINOR) source_shopify/source.py:165 Check that operator is valid for operands "object" not callable . Code line: return self.parent_stream_class(self.config) if self.parent_st...
python:mypy_index (MINOR) source_shopify/source.py:185 Check indexing operations Unsupported target for indexed assignment ("Mapping[str, Any]") . Code line: updated_state[self.parent_stream.name] = stream_state_cache.ca...
python:mypy_attr_defined (MINOR) source_shopify/source.py:185 Check that attribute exists "object" has no attribute "name" . Code line: updated_state[self.parent_stream.name] = stream_state_cache.ca...
python:mypy_attr_defined (MINOR) source_shopify/source.py:209 Check that attribute exists "object" has no attribute "name" . Code line: parent_stream_state = stream_state.get(self.parent_stream.name...
python:mypy_attr_defined (MINOR) source_shopify/source.py:211 Check that attribute exists "object" has no attribute "read_records" . Code line: for record in self.parent_stream.read_records(stream_state=par...
python:mypy_attr_defined (MINOR) source_shopify/source.py:214 Check that attribute exists "object" has no attribute "name" . Code line: stream_state_cache.cached_state[self.parent_stream.name] =...
python:mypy_attr_defined (MINOR) source_shopify/source.py:214 Check that attribute exists "object" has no attribute "get_updated_state" . Code line: ...te_cache.cached_state[self.parent_stream.name] = self.parent_stream.ge...
python:mypy_arg_type (MINOR) source_shopify/source.py:528 Check argument types in calls Argument 1 to "TenderTransactions" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: TenderTransactions(config),
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def path(self, **kwargs) -> str:
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def path(self, **kwargs) -> str:
flake8:W293 (MAJOR) source_shopify/source.py:41 blank line contains whitespace blank line contains whitespace
python:mypy_arg_type (MINOR) source_shopify/source.py:530 Check argument types in calls Argument 1 to "BalanceTransactions" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: BalanceTransactions(config),
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation . Code line: def get_user_scopes(config):
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation . Code line: def format_name(name):
python:mypy_arg_type (MINOR) source_shopify/source.py:493 Check argument types in calls Argument 1 to "Shop" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: response = list(Shop(config).read_records(sync_mode=None))
python:mypy_union_attr (MINOR) source_shopify/source.py:513 Check that attribute exists in each item of a union Item "None" of "Optional[List[str]]" has no attribute "iter" (not iterable) . Code line: for stream in SCOPES_MAPPING.get(user_scope["handle"])
python:isort_need_format (MINOR) unit_tests/conftest.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/unit_test.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_shopify/auth.py:34 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "Optional[Any]", variable has type "str") . Code line: auth_method: str = credentials.get("auth_method")
python:mypy_misc (MINOR) source_shopify/source.py:77 Miscellaneous other checks Incompatible types in "yield" (actual type "Iterable[MutableMapping[Any, Any]]", expected type "Mapping[Any, Any]") . Code line: yield self._transformer.transform(records)
python:mypy_assignment (MINOR) source_shopify/source.py:157 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "str") . Code line: nested_record_field_name: str = None
python:S5890 (MAJOR) source_shopify/source.py:157 Values assigned to variables should match their type annotations Assign to "nested_record_field_name" a value of type "str" instead of "NoneType" or update its type hint.
python:mypy_unreachable (MINOR) source_shopify/source.py:219 Warn about unreachable statements or expressions Statement is unreachable . Code line: if record.get(self.nested_substream):
python:mypy_union_attr (MINOR) source_shopify/source.py:232 Check that attribute exists in each item of a union Item "None" of "Optional[Mapping[str, Any]]" has no attribute "get" . Code line: slice_data = stream_slice.get(self.slice_key)
python:mypy_assignment (MINOR) source_shopify/source.py:350 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "ShopifySubstream" defined the type as "None") . Code line: nested_substream = "refunds"
python:mypy_index (MINOR) source_shopify/source.py:454 Check indexing operations Value of type "Optional[Mapping[str, Any]]" is not indexable . Code line: ...n(str(x[self.nested_record_field_name]) for x in stream_slice[self.sli...
python:mypy_index (MINOR) source_shopify/source.py:491 Check indexing operations Unsupported target for indexed assignment ("Mapping[str, Any]") . Code line: config["authenticator"] = ShopifyAuthenticator(config)
python:mypy_arg_type (MINOR) source_shopify/source.py:526 Check argument types in calls Argument 1 to "OrderRefunds" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: OrderRefunds(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:527 Check argument types in calls Argument 1 to "OrderRisks" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: OrderRisks(config),
python:mypy_no_untyped_def (MINOR) source_shopify/transform.py Check that every function has an annotation Function is missing a return type annotation . Code line: def _transform_string(value: Any):
python:mypy_no_any_return (MINOR) source_shopify/transform.py:100 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "Iterable[MutableMapping[Any, Any]]" . Code line: return self._transform_string(field)
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def path(self, **kwargs) -> str:
python:mypy_arg_type (MINOR) source_shopify/source.py:539 Check argument types in calls Argument 1 to "Shop" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: Shop(config),
python:mypy_attr_defined (MINOR) source_shopify/source.py Check that attribute exists "str" has no attribute "get" . Code line: if record.get(self.cursor_field, "") >= stream_state.g...
python:mypy_union_attr (MINOR) source_shopify/source.py:132 Check that attribute exists in each item of a union Item "str" of "Union[str, Any]" has no attribute "get" . Code line: if record.get(self.cursor_field, "") >= stream_state.g...
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -...
python:S5890 (MAJOR) source_shopify/source.py:447 Values assigned to variables should match their type annotations Assign to "parent_stream_class" a value of type "object" or update its type hint.
python:mypy_arg_type (MINOR) source_shopify/source.py:535 Check argument types in calls Argument 1 to "InventoryItems" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: InventoryItems(config),
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -...
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -...
python:S5890 (MAJOR) source_shopify/source.py:369 Values assigned to variables should match their type annotations Assign to "parent_stream_class" a value of type "object" or update its type hint.
python:S5890 (MAJOR) source_shopify/source.py:459 Values assigned to variables should match their type annotations Assign to "parent_stream_class" a value of type "object" or update its type hint.
python:mypy_index (MINOR) source_shopify/source.py:465 Check indexing operations Value of type "Optional[Mapping[str, Any]]" is not indexable . Code line: order_id = stream_slice[self.slice_key]
python:mypy_index (MINOR) source_shopify/source.py:475 Check indexing operations Value of type "Optional[Mapping[str, Any]]" is not indexable . Code line: order_id = stream_slice[self.slice_key]
python:mypy_arg_type (MINOR) source_shopify/source.py:537 Check argument types in calls Argument 1 to "FulfillmentOrders" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: FulfillmentOrders(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:538 Check argument types in calls Argument 1 to "Fulfillments" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: Fulfillments(config),
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation . Code line: def path(self, **kwargs):
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -...
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def parse_response(self, response: requests.Response, **kwargs) ->...
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation . Code line: def generate_key(record):
python:S5890 (MAJOR) source_shopify/source.py:427 Values assigned to variables should match their type annotations Assign to "parent_stream_class" a value of type "object" or update its type hint.
python:mypy_index (MINOR) source_shopify/source.py:432 Check indexing operations Value of type "Optional[Mapping[str, Any]]" is not indexable . Code line: location_id = stream_slice["location_id"]
python:mypy_arg_type (MINOR) source_shopify/source.py:534 Check argument types in calls Argument 1 to "Locations" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: Locations(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:536 Check argument types in calls Argument 1 to "InventoryLevels" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: InventoryLevels(config),
python:mypy_index (MINOR) source_shopify/source.py:506 Check indexing operations Unsupported target for indexed assignment ("Mapping[str, Any]") . Code line: config["authenticator"] = ShopifyAuthenticator(config)
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:isort_need_format (MINOR) unit_tests/test_cached_stream_state.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_control_rate_limit.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_transform.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_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def request_params(self, next_page_token: Mapping[str, Any] = None...
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def stream_slices(self, stream_state: Mapping[str, Any] = None, **...
python:mypy_operator (MINOR) source_shopify/source.py Check that operator is valid for operands "object" not callable . Code line: parent_stream = self.parent_stream_class(self.config)
python:mypy_no_untyped_def (MINOR) source_shopify/source.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def read_records(
python:mypy_arg_type (MINOR) source_shopify/source.py:115 Check argument types in calls Argument 1 to "cache_stream_state" has incompatible type "Callable[[IncrementalShopifyStream, Optional[Mapping[str, Any]], Optional[Mapping[str, Any]], KwArg(Any)], Any]"; expected "EagerlyCachedStreamState" . Code line: @stream_state_cache.cache_stream_state
python:mypy_assignment (MINOR) source_shopify/source.py:155 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "str") . Code line: slice_key: str = None
python:S5890 (MAJOR) source_shopify/source.py:155 Values assigned to variables should match their type annotations Assign to "slice_key" a value of type "str" instead of "NoneType" or update its type hint.
python:S5890 (MAJOR) source_shopify/source.py:345 Values assigned to variables should match their type annotations Assign to "parent_stream_class" a value of type "object" or update its type hint.
python:S5890 (MAJOR) source_shopify/source.py:358 Values assigned to variables should match their type annotations Assign to "parent_stream_class" a value of type "object" or update its type hint.
python:S5890 (MAJOR) source_shopify/source.py:403 Values assigned to variables should match their type annotations Assign to "parent_stream_class" a value of type "object" or update its type hint.
python:S5890 (MAJOR) source_shopify/source.py:470 Values assigned to variables should match their type annotations Assign to "parent_stream_class" a value of type "object" or update its type hint.
python:mypy_no_untyped_def (MINOR) source_shopify/utils.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def stream_state_to_tmp(*args, state_object: Dict = cached_state, ...
python:mypy_no_untyped_def (MINOR) source_shopify/utils.py Check that every function has an annotation Function is missing a type annotation . Code line: def decorator(*args, **kwargs):
python:mypy_attr_defined (MINOR) source_shopify/utils.py:136 Check that attribute exists "object" has no attribute "name" . Code line: state_object[stream.name] = {stream.cursor_field: current_...
python:mypy_attr_defined (MINOR) source_shopify/utils.py:136 Check that attribute exists "object" has no attribute "cursor_field" . Code line: state_object[stream.name] = {stream.cursor_field: current_...
python:mypy_misc (MINOR) source_shopify/source.py:83 Miscellaneous other checks Incompatible types in "yield" (actual type "Iterable[MutableMapping[Any, Any]]", expected type "Mapping[Any, Any]") . Code line: yield self._transformer.transform(record)
python:mypy_no_untyped_def (MINOR) source_shopify/transform.py Check that every function has an annotation Function is missing a return type annotation . Code line: def _transform_array(self, array: List[Any], item_properties: Mapp...
python:mypy_no_untyped_def (MINOR) source_shopify/transform.py Check that every function has an annotation Function is missing a return type annotation . Code line: def _transform_object(self, record: MutableMapping[str, Any], prop...
python:mypy_no_untyped_def (MINOR) source_shopify/transform.py Check that every function has an annotation Function is missing a type annotation for one or more arguments . Code line: def init(self, schema: Mapping[str, Any], **kwargs):
python:mypy_no_untyped_def (MINOR) source_shopify/transform.py Check that every function has an annotation Function is missing a return type annotation . Code line: def _transform_number(value: Any):
python:mypy_return_value (MINOR) source_shopify/transform.py:45 Check that return value is compatible with signature Incompatible return value type (got "Optional[List[str]]", expected "List[str]") . Code line: return json_types.get(value_type)
python:mypy_no_any_return (MINOR) source_shopify/transform.py:54 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "str" . Code line: return schema_types
python:mypy_arg_type (MINOR) source_shopify/transform.py:95 Check argument types in calls Argument 1 to "_first_non_null_type" of "DataTypeEnforcer" has incompatible type "str"; expected "List[str]" . Code line: schema_type = self._first_non_null_type(schema_types)
python:mypy_no_any_return (MINOR) source_shopify/transform.py:98 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "Iterable[MutableMapping[Any, Any]]" . Code line: return self._transform_number(field)
python:mypy_no_any_return (MINOR) source_shopify/transform.py:103 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "Iterable[MutableMapping[Any, Any]]" . Code line: return self._transform_object(field, properties)
python:mypy_no_any_return (MINOR) source_shopify/transform.py:106 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "Iterable[MutableMapping[Any, Any]]" . Code line: return self._transform_array(field, properties)
python:mypy_no_any_return (MINOR) source_shopify/transform.py:107 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "Iterable[MutableMapping[Any, Any]]" . Code line: return field
python:mypy_arg_type (MINOR) source_shopify/source.py:518 Check argument types in calls Argument 1 to "Customers" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: Customers(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:519 Check argument types in calls Argument 1 to "Orders" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: Orders(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:520 Check argument types in calls Argument 1 to "DraftOrders" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: DraftOrders(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:521 Check argument types in calls Argument 1 to "Products" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: Products(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:522 Check argument types in calls Argument 1 to "AbandonedCheckouts" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: AbandonedCheckouts(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:523 Check argument types in calls Argument 1 to "Metafields" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: Metafields(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:524 Check argument types in calls Argument 1 to "CustomCollections" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: CustomCollections(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:525 Check argument types in calls Argument 1 to "Collects" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: Collects(config),
python:mypy_arg_type (MINOR) source_shopify/source.py:529 Check argument types in calls Argument 1 to "Transactions" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: Transactions(config),

Coverage (66.0%)

File Coverage File Coverage
source_shopify/init.py 100.0 source_shopify/auth.py 80.0
source_shopify/source.py 63.1 source_shopify/transform.py 94.8
source_shopify/utils.py 89.3

Please sign in to comment.