From 04d516e4f25f9d05eb61d310769c19a9653ae318 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sat, 25 Jul 2026 18:40:47 +0200 Subject: [PATCH] Sandbox: Update to ruff 0.16.0 with old default configuration https://astral.sh/blog/ruff-v0.16.0 --- pyproject.toml | 5 ++++- src/omniload/source/google_sheets/README.md | 19 ++++++++++++++----- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d5fd8748c..adf123f05 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -142,7 +142,7 @@ optional-dependencies.develop = [ "poethepoet<1", "pyproject-fmt<3", "pytest-repeat<1", - "ruff<0.16", + "ruff==0.16.*", "ty==0.0.63", "validate-pyproject<1", ] @@ -206,6 +206,9 @@ lint.select = [ "C4", # Pycodestyle "E", + "E4", + "E7", + "E9", # eradicate "ERA", # Pyflakes diff --git a/src/omniload/source/google_sheets/README.md b/src/omniload/source/google_sheets/README.md index ccde899de..8e9aefc6f 100644 --- a/src/omniload/source/google_sheets/README.md +++ b/src/omniload/source/google_sheets/README.md @@ -69,14 +69,16 @@ In case of Airflow, the source is created and executed separately. In typical co **Moreover, you should not use `scc` decomposition in our Airflow helper**. It will create an instance of the source for each requested range in order to run a task that corresponds to it! Following our [Airflow deployment guide](https://dlthub.com/docs/walkthroughs/deploy-a-pipeline/deploy-with-airflow-composer#2-modify-dag-file), this is how you should use `tasks.add_run` on `PipelineTasksGroup`: ```python @dag( - schedule_interval='@daily', + schedule_interval="@daily", start_date=pendulum.datetime(2023, 2, 1), catchup=False, max_active_runs=1, - default_args=default_task_args + default_args=default_task_args, ) def get_named_ranges(): - tasks = PipelineTasksGroup("get_named_ranges", use_data_folder=False, wipe_local_data=True) + tasks = PipelineTasksGroup( + "get_named_ranges", use_data_folder=False, wipe_local_data=True + ) # import your source from pipeline script from google_sheets import google_spreadsheet @@ -84,11 +86,18 @@ def get_named_ranges(): pipeline = dlt.pipeline( pipeline_name="get_named_ranges", dataset_name="named_ranges_data", - destination='bigquery', + destination="bigquery", ) # do not use decompose to run `google_spreadsheet` in single task - tasks.add_run(pipeline, google_spreadsheet("1HhWHjqouQnnCIZAFa2rL6vT91YRN8aIhts22SUUR580"), decompose="none", trigger_rule="all_done", retries=0, provide_context=True) + tasks.add_run( + pipeline, + google_spreadsheet("1HhWHjqouQnnCIZAFa2rL6vT91YRN8aIhts22SUUR580"), + decompose="none", + trigger_rule="all_done", + retries=0, + provide_context=True, + ) ``` ## Setup credentials