diff --git a/.github/workflows/python-lint.yaml b/.github/workflows/python-lint.yaml index 42fdd0c6b..8691a4b9f 100644 --- a/.github/workflows/python-lint.yaml +++ b/.github/workflows/python-lint.yaml @@ -12,8 +12,8 @@ jobs: python -m pip install flake8 isort nbqa - uses: psf/black@stable with: - args: ". --check" - version: "21.5b1" + options: "--check" + version: "22.3.0" - name: Run Flake8 Linter run: flake8 - name: Run isort diff --git a/datasets/google_political_ads/pipelines/_images/run_csv_transform_kub/csv_transform.py b/datasets/google_political_ads/pipelines/_images/run_csv_transform_kub/csv_transform.py index ab36b8b2c..50eb5a397 100644 --- a/datasets/google_political_ads/pipelines/_images/run_csv_transform_kub/csv_transform.py +++ b/datasets/google_political_ads/pipelines/_images/run_csv_transform_kub/csv_transform.py @@ -124,7 +124,7 @@ def save_to_new_file(df: pd.DataFrame, file_path: str, table_name: str) -> None: def upload_file_to_gcs(file_path: pathlib.Path, gcs_bucket: str, gcs_path: str) -> None: storage_client = storage.Client() bucket = storage_client.bucket(gcs_bucket) - blob = bucket.blob(gcs_path, chunk_size=1000 * (2 ** 18)) + blob = bucket.blob(gcs_path, chunk_size=1000 * pow(2, 18)) blob.upload_from_filename(file_path)