Initial plugin

This commit is contained in:
2025-02-24 16:44:55 +00:00
parent 0b2c16076e
commit 4e3355aa53
12 changed files with 806 additions and 2 deletions

78
pyproject.toml Normal file
View File

@@ -0,0 +1,78 @@
[project]
name = "airflow-wingman"
version = "0.2.0"
description = "Airflow plugin to enable LLMs chat"
readme = "README.md"
requires-python = ">=3.11"
authors = [
{name = "Abhishek Bhakat", email = "abhishek.bhakat@hotmail.com"}
]
dependencies = [
"apache-airflow>=2.10.0",
"openai>=1.64.0",
"anthropic>=0.46.0"
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Plugins",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.10",
]
license = "MIT"
license-files = ["LICEN[CS]E*"]
[project.urls]
GitHub = "https://github.com/abhishekbhakat/airflow-wingman"
Issues = "https://github.com/abhishekbhakat/airflow-wingman/issues"
[project.entry-points."airflow.plugins"]
wingman = "airflow_wingman:WingmanPlugin"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/airflow_wingman"]
[tool.ruff]
line-length = 200
indent-width = 4
fix = true
preview = true
lint.select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"W", # pycodestyle warnings
"C90", # Complexity
"C", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"T10", # flake8-debugger
"A", # flake8-builtins
"UP", # pyupgrade
]
lint.ignore = [
"C416", # Unnecessary list comprehension - rewrite as a generator expression
"C408", # Unnecessary `dict` call - rewrite as a literal
"ISC001" # Single line implicit string concatenation
]
lint.fixable = ["ALL"]
lint.unfixable = []
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.ruff.lint.mccabe]
max-complexity = 12