Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to copier template #12

Merged
merged 3 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Changes here will be overwritten by Copier
_commit: 941f1c9
_src_path: [email protected]:python-project-templates/base.git
add_extension: python
email: [email protected]
github: airflow-laminar
project_description: High Availability (HA) DAG Utility
project_name: airflow ha
python_version_primary: '3.9'
team: the airflow-ha authors
2 changes: 1 addition & 1 deletion airflow_ha/operator.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
13 changes: 7 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ replace = 'version = "{new_version}"'

[tool.check-manifest]
ignore = [
".copier-answers.yml",
"Makefile",
"setup.py",
"docs/*/*",
Expand All @@ -88,6 +89,7 @@ include = [
"README.md",
]
exclude = [
".copier-answers.yml",
"/.github",
"/.gitattributes",
"/.gitignore",
Expand All @@ -100,6 +102,7 @@ include = [
"/airflow_ha",
]
exclude = [
".copier-answers.yml",
"/.github",
"/.gitattributes",
"/.gitignore",
Expand All @@ -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"]
Expand Down