Skip to content

Commit

Permalink
chore(deps-dev): bump the development-dependencies group with 2 updat…
Browse files Browse the repository at this point in the history
…es (#2898)

* chore(deps-dev): bump the development-dependencies group with 2 updates

Bumps the development-dependencies group with 2 updates: [boto3-stubs](https://github.com/youtype/mypy_boto3_builder) and [ruff](https://github.com/astral-sh/ruff).


Updates `boto3-stubs` from 1.34.140 to 1.34.144
- [Release notes](https://github.com/youtype/mypy_boto3_builder/releases)
- [Commits](https://github.com/youtype/mypy_boto3_builder/commits)

Updates `ruff` from 0.5.1 to 0.5.2
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.5.1...0.5.2)

---
updated-dependencies:
- dependency-name: boto3-stubs
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix static checks

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Leon Luttenberger <[email protected]>
Co-authored-by: Leon Luttenberger <[email protected]>
  • Loading branch information
3 people authored Jul 15, 2024
1 parent e4f8436 commit 4b901aa
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 35 deletions.
63 changes: 33 additions & 30 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ msgpack = "*"
poetry = "^1.8.3"

# Lint
boto3-stubs = {version = "^1.34.136", extras = ["athena", "cleanrooms", "chime", "cloudwatch", "dynamodb", "ec2", "emr", "emr-serverless", "glue", "kms", "logs", "neptune", "opensearch", "opensearchserverless", "quicksight", "rds", "rds-data", "redshift", "redshift-data", "s3", "secretsmanager", "ssm", "sts", "timestream-query", "timestream-write"]}
boto3-stubs = {version = "^1.34.144", extras = ["athena", "cleanrooms", "chime", "cloudwatch", "dynamodb", "ec2", "emr", "emr-serverless", "glue", "kms", "logs", "neptune", "opensearch", "opensearchserverless", "quicksight", "rds", "rds-data", "redshift", "redshift-data", "s3", "secretsmanager", "ssm", "sts", "timestream-query", "timestream-write"]}
doc8 = "^1.0"
mypy = "^1.10"
ruff = "^0.5.0"
ruff = "^0.5.2"

# Test
moto = "^5.0"
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_athena_geospatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_athena_geospatial(path, glue_table, glue_database):
ctas_approach=False,
)

assert type(df) == geopandas.GeoDataFrame
assert isinstance(df, geopandas.GeoDataFrame)

assert isinstance(df["value"], pd.Series)
assert isinstance(df["point"], geopandas.GeoSeries)
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_moto.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,13 +613,13 @@ def mock_data_api_connector(connector, has_result_set=True):
data = [[col["stringValue"] for col in record] for record in statement_response["Records"]]
response_dataframe = pd.DataFrame(data, columns=column_names)

if type(connector) == wr.data_api.redshift.RedshiftDataApi:
if isinstance(connector, wr.data_api.redshift.RedshiftDataApi):
connector.client.execute_statement = mock.MagicMock(return_value={"Id": request_id})
connector.client.describe_statement = mock.MagicMock(
return_value={"Status": "FINISHED", "HasResultSet": has_result_set}
)
connector.client.get_statement_result = mock.MagicMock(return_value=statement_response)
elif type(connector) == wr.data_api.rds.RdsDataApi:
elif isinstance(connector, wr.data_api.rds.RdsDataApi):
records = statement_response["Records"]
metadata = statement_response["ColumnMetadata"]
del statement_response["Records"]
Expand Down

0 comments on commit 4b901aa

Please sign in to comment.