From c078b58638953429b97cc208149668b39fb5fdee Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Fri, 13 Sep 2024 15:57:58 -0400 Subject: [PATCH 1/3] Add copier template --- .copier-answers.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .copier-answers.yml diff --git a/.copier-answers.yml b/.copier-answers.yml new file mode 100644 index 0000000..0e8b2ea --- /dev/null +++ b/.copier-answers.yml @@ -0,0 +1,10 @@ +# Changes here will be overwritten by Copier +_commit: acb4a69 +_src_path: git@github.com:python-project-templates/base.git +add_extension: python +email: 3105306+timkpaine@users.noreply.github.com +github: airflow-laminar +project_description: High Availability (HA) DAG Utility +project_name: airflow ha +python_version_primary: '3.9' +team: the airflow-ha authors From 48d3c6696ff0e56b1a105fe1717b5f35d0406d9e Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Fri, 13 Sep 2024 15:58:19 -0400 Subject: [PATCH 2/3] Update copier --- .copier-answers.yml | 2 +- pyproject.toml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.copier-answers.yml b/.copier-answers.yml index 0e8b2ea..3d735e7 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: acb4a69 +_commit: 941f1c9 _src_path: git@github.com:python-project-templates/base.git add_extension: python email: 3105306+timkpaine@users.noreply.github.com diff --git a/pyproject.toml b/pyproject.toml index cc66fee..02e17bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -88,6 +88,7 @@ include = [ "README.md", ] exclude = [ + ".copier-answers.yml", "/.github", "/.gitattributes", "/.gitignore", @@ -100,6 +101,7 @@ include = [ "/airflow_ha", ] exclude = [ + ".copier-answers.yml", "/.github", "/.gitattributes", "/.gitignore", @@ -117,16 +119,14 @@ testpaths = "airflow_ha/tests" [tool.ruff] line-length = 150 +[tool.ruff.lint] +extend-select = ["I"] + [tool.ruff.lint.isort] combine-as-imports = true default-section = "third-party" known-first-party = ["airflow_ha"] -section-order = [ - "future", - "third-party", - "first-party", - "local-folder", -] +section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"] [tool.ruff.lint.per-file-ignores] "__init__.py" = ["F401", "F403"] From 9260c1dbe3aa093376b7e35e321625bfa8621e6c Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Fri, 13 Sep 2024 15:58:28 -0400 Subject: [PATCH 3/3] Resolve copier lint changes --- airflow_ha/operator.py | 2 +- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/airflow_ha/operator.py b/airflow_ha/operator.py index dd33c32..f0a13d1 100644 --- a/airflow_ha/operator.py +++ b/airflow_ha/operator.py @@ -1,8 +1,8 @@ from enum import Enum from typing import Any, Callable, Dict, Optional, Tuple +from airflow.exceptions import AirflowFailException, AirflowSkipException from airflow.models.operator import Operator -from airflow.exceptions import AirflowSkipException, AirflowFailException from airflow.operators.python import BranchPythonOperator, PythonOperator from airflow.operators.trigger_dagrun import TriggerDagRunOperator from airflow.sensors.python import PythonSensor diff --git a/pyproject.toml b/pyproject.toml index 02e17bc..ffb7b8f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,6 +69,7 @@ replace = 'version = "{new_version}"' [tool.check-manifest] ignore = [ + ".copier-answers.yml", "Makefile", "setup.py", "docs/*/*",