Skip to content

Commit

Permalink
chore(lint): make pyling happy
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Gaudin-Delrieu <[email protected]>
  • Loading branch information
FlorianGD committed Aug 10, 2023
1 parent 25f0444 commit a364aa1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
8 changes: 6 additions & 2 deletions kedro-datasets/tests/api/test_api_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,9 @@ def test_successful_save(self, requests_mock, method, data):
Then check that the response is OK and the sent data is in the correct form.
"""

def json_callback(request: requests.Request, context: Any) -> dict:
def json_callback(
request: requests.Request, context: Any # pylint: disable=unused-argument
) -> dict:
"""Callback that sends back the json."""
return request.json()

Expand Down Expand Up @@ -329,7 +331,9 @@ def test_successful_save_with_json(self, requests_mock, save_methods):
Then check we get a response
"""

def json_callback(request: requests.Request, context: Any) -> dict:
def json_callback(
request: requests.Request, context: Any # pylint: disable=unused-argument
) -> dict:
"""Callback that sends back the json."""
return request.json()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def test_full_table(self):
assert unity_ds._table.full_table_location() == "`default`.`test`"

with pytest.raises(TypeError):
ManagedTableDataSet() # pylint: disable=no-value-for-parameter
ManagedTableDataSet()

def test_describe(self):
unity_ds = ManagedTableDataSet(table="test")
Expand Down
1 change: 0 additions & 1 deletion kedro-datasets/tests/pandas/test_hdf_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ def test_save_and_load_df_with_categorical_variables(self, hdf_data_set):

def test_thread_lock_usage(self, hdf_data_set, dummy_dataframe, mocker):
"""Test thread lock usage."""
# pylint: disable=no-member
mocked_lock = HDFDataSet._lock
mocked_lock.assert_not_called()

Expand Down

0 comments on commit a364aa1

Please sign in to comment.