Skip to content

Commit 56c6362

Browse files
committed
Applying black style. #338
1 parent 69c7378 commit 56c6362

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

awswrangler/catalog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ def _csv_table_definition(
13421342
partitions_types: Dict[str, str],
13431343
compression: Optional[str],
13441344
sep: str,
1345-
skip_header_line_count: Optional[int]
1345+
skip_header_line_count: Optional[int],
13461346
) -> Dict[str, Any]:
13471347
compressed: bool = compression is not None
13481348
parameters: Dict[str, str] = {

tests/test_athena_csv.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -327,21 +327,16 @@ def test_skip_header(path, glue_database, glue_table, use_threads, ctas_approach
327327
df = pd.DataFrame({"c0": [1, 2], "c1": [3.3, 4.4], "c2": ["foo", "boo"]})
328328
df["c0"] = df["c0"].astype("Int64")
329329
df["c2"] = df["c2"].astype("string")
330-
paths = wr.s3.to_csv(
331-
df=df,
332-
path=f"{path}0.csv",
333-
sep=",",
334-
index=False,
335-
header=True,
336-
use_threads=use_threads
337-
)["paths"]
330+
paths = wr.s3.to_csv(df=df, path=f"{path}0.csv", sep=",", index=False, header=True, use_threads=use_threads)[
331+
"paths"
332+
]
338333
wr.s3.wait_objects_exist(paths=paths, use_threads=use_threads)
339334
wr.catalog.create_csv_table(
340335
database=glue_database,
341336
table=glue_table,
342337
path=path,
343338
columns_types={"c0": "bigint", "c1": "double", "c2": "string"},
344-
skip_header_line_count=1
339+
skip_header_line_count=1,
345340
)
346341
df2 = wr.athena.read_sql_table(glue_table, glue_database, use_threads=use_threads, ctas_approach=ctas_approach)
347342
assert df.equals(df2)

0 commit comments

Comments
 (0)