From 0a9f2b66e9ec2facf9429943cbfccbd19e054d74 Mon Sep 17 00:00:00 2001 From: Vijay Kiran Date: Fri, 8 Apr 2022 11:45:33 +0200 Subject: [PATCH] Update black, fix type issues --- .pre-commit-config.yaml | 4 ++-- src/sodaspark/scan.py | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8c764b5..d09ff5c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/src/sodaspark/scan.py b/src/sodaspark/scan.py index 7d41a26..529fb1b 100644 --- a/src/sodaspark/scan.py +++ b/src/sodaspark/scan.py @@ -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. @@ -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: