Skip to content

Commit

Permalink
Update black, fix type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaykiran committed Apr 8, 2022
1 parent 85ee794 commit 0a9f2b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ repos:
rev: v0.910
hooks:
- id: mypy
- repo: https://github.com/ambv/black
rev: 21.8b0
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
name: Run black formatter
Expand Down
8 changes: 6 additions & 2 deletions src/sodaspark/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,9 @@ def create_warehouse() -> Warehouse:


def create_scan(
scan_yml: ScanYml, variables: dict = None, soda_server_client: SodaServerClient | None = None
scan_yml: ScanYml,
variables: dict | None = None,
soda_server_client: SodaServerClient | None = None,
) -> Scan:
"""
Create a scan object.
Expand Down Expand Up @@ -443,7 +445,9 @@ def execute(
scan_yml = create_scan_yml(scan_definition)
df.createOrReplaceTempView(scan_yml.table_name)

scan = create_scan(scan_yml, variables=variables, soda_server_client=soda_server_client)
scan = create_scan(
scan_yml, variables=variables, soda_server_client=soda_server_client
)
scan.execute()

if as_frames:
Expand Down

0 comments on commit 0a9f2b6

Please sign in to comment.