Skip to content

Commit a62207d

Browse files
Update dependencies (#936)
* Update dependencies * Minor - Updating pyproject.toml and running validate.sh Co-authored-by: Abdel Jaidi <[email protected]>
1 parent cff3959 commit a62207d

File tree

9 files changed

+43
-71
lines changed

9 files changed

+43
-71
lines changed

awswrangler/athena/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class _WorkGroupConfig(NamedTuple):
4343

4444
class _LocalMetadataCacheManager:
4545
def __init__(self) -> None:
46-
self._cache: Dict[str, Any] = dict()
46+
self._cache: Dict[str, Any] = {}
4747
self._pqueue: List[Tuple[datetime.datetime, str]] = []
4848
self._max_cache_size = 100
4949

awswrangler/catalog/_definitions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def _check_column_type(column_type: str) -> bool:
190190

191191

192192
def _update_table_definition(current_definition: Dict[str, Any]) -> Dict[str, Any]:
193-
definition: Dict[str, Any] = dict()
193+
definition: Dict[str, Any] = {}
194194
keep_keys = [
195195
"Name",
196196
"Description",

awswrangler/chime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def post_message(webhook: str, message: str) -> Optional[Any]:
2626
Represents the response from Chime
2727
"""
2828
response = None
29-
chime_message = {"Content": "Message: %s" % (message)}
29+
chime_message = {"Content": f"Message: {message}"}
3030
req = Request(webhook, json.dumps(chime_message).encode("utf-8"))
3131
try:
3232
response = urlopen(req) # pylint: disable=R1732

awswrangler/dynamodb/_write.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def put_json(
5151
... )
5252
"""
5353
# Loading data from file
54-
with open(path, "r") as f:
54+
with open(path, "r") as f: # pylint: disable=W1514
5555
items = json.load(f)
5656
if isinstance(items, dict):
5757
items = [items]

awswrangler/postgresql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def connect(
145145
attrs: _db_utils.ConnectionAttributes = _db_utils.get_connection_attributes(
146146
connection=connection, secret_id=secret_id, catalog_id=catalog_id, dbname=dbname, boto3_session=boto3_session
147147
)
148-
if attrs.kind != "postgresql" and attrs.kind != "postgres":
148+
if attrs.kind not in ("postgresql", "postgres"):
149149
raise exceptions.InvalidDatabaseType(
150150
f"Invalid connection type ({attrs.kind}. It must be a postgresql connection.)"
151151
)

awswrangler/s3/_fs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def __init__(
186186
self._version_id = version_id
187187
self._boto3_session: boto3.Session = _utils.ensure_session(session=boto3_session)
188188
if mode not in {"rb", "wb", "r", "w"}:
189-
raise NotImplementedError("File mode must be {'rb', 'wb', 'r', 'w'}, not %s" % mode)
189+
raise NotImplementedError(f"File mode must be {'rb', 'wb', 'r', 'w'}, not {mode}")
190190
self._mode: str = "rb" if mode is None else mode
191191
self._one_shot_download: bool = False
192192
if 0 < s3_block_size < 3:

awswrangler/s3/_merge_upsert_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def _is_data_quality_sufficient(
4848
existing_df: pandas.DataFrame, delta_df: pandas.DataFrame, primary_key: List[str]
4949
) -> bool:
5050
"""Check data quality of existing table and the new delta feed."""
51-
error_messages = list()
51+
error_messages = []
5252
existing_schema = _data_types.pyarrow_types_from_pandas(df=existing_df, index=False)
5353
delta_schema = _data_types.pyarrow_types_from_pandas(df=delta_df, index=False)
5454
# Check for duplicates on the primary key in the existing table

poetry.lock

Lines changed: 32 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ pandas = [
3737
]
3838
numpy = "^1.18.0"
3939
pyarrow = ">=2.0.0, <5.1.0"
40-
redshift-connector = "~2.0.884"
40+
redshift-connector = "~2.0.888"
4141
pymysql = ">=0.9.0, <1.1.0"
4242
pg8000 = ">=1.16.0,<1.22.0"
4343
openpyxl = "~3.0.0"
4444
xlrd = { version = "^2.0.1", python = "~3.6" }
4545
xlwt = { version = "^1.3.0", python = "~3.6" }
4646

47-
pyodbc = { version = "~4.0.30", optional = true }
47+
pyodbc = { version = "~4.0.32", optional = true }
4848
sphinx-bootstrap-theme = "^0.8.0"
4949
Sphinx = "^4.2.0"
5050
tox = "^3.24.4"
@@ -57,7 +57,7 @@ sqlserver = ["pyodbc"]
5757
wheel = "^0.36.2"
5858
isort = "^5.9.2"
5959
black = "^21.7b0"
60-
pylint = "^2.9.6"
60+
pylint = "^2.11.1"
6161
flake8 = "^3.9.2"
6262
mypy = "^0.910"
6363
pydocstyle = "^6.1.1"
@@ -66,7 +66,7 @@ tox = "^3.24.4"
6666
pytest = "^6.2.4"
6767
pytest-cov = "^2.12.1"
6868
pytest-rerunfailures = "^10.1"
69-
pytest-xdist = "^2.3.0"
69+
pytest-xdist = "^2.4.0"
7070
pytest-timeout = "^1.4.2"
7171
pydot = "^1.4.2"
7272
sphinx = "^4.2.0"

0 commit comments

Comments
 (0)