Skip to content

Commit 0a9f2b6

Browse files
committed
Update black, fix type issues
1 parent 85ee794 commit 0a9f2b6

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ repos:
1919
rev: v0.910
2020
hooks:
2121
- id: mypy
22-
- repo: https://github.com/ambv/black
23-
rev: 21.8b0
22+
- repo: https://github.com/psf/black
23+
rev: 22.3.0
2424
hooks:
2525
- id: black
2626
name: Run black formatter

src/sodaspark/scan.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ def create_warehouse() -> Warehouse:
250250

251251

252252
def create_scan(
253-
scan_yml: ScanYml, variables: dict = None, soda_server_client: SodaServerClient | None = None
253+
scan_yml: ScanYml,
254+
variables: dict | None = None,
255+
soda_server_client: SodaServerClient | None = None,
254256
) -> Scan:
255257
"""
256258
Create a scan object.
@@ -443,7 +445,9 @@ def execute(
443445
scan_yml = create_scan_yml(scan_definition)
444446
df.createOrReplaceTempView(scan_yml.table_name)
445447

446-
scan = create_scan(scan_yml, variables=variables, soda_server_client=soda_server_client)
448+
scan = create_scan(
449+
scan_yml, variables=variables, soda_server_client=soda_server_client
450+
)
447451
scan.execute()
448452

449453
if as_frames:

0 commit comments

Comments
 (0)