diff --git a/.copier-answers.yml b/.copier-answers.yml new file mode 100644 index 0000000..3d735e7 --- /dev/null +++ b/.copier-answers.yml @@ -0,0 +1,10 @@ +# Changes here will be overwritten by Copier +_commit: 941f1c9 +_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 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 cc66fee..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/*/*", @@ -88,6 +89,7 @@ include = [ "README.md", ] exclude = [ + ".copier-answers.yml", "/.github", "/.gitattributes", "/.gitignore", @@ -100,6 +102,7 @@ include = [ "/airflow_ha", ] exclude = [ + ".copier-answers.yml", "/.github", "/.gitattributes", "/.gitignore", @@ -117,16 +120,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"]