-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (87 loc) · 2.46 KB
/
Copy pathpyproject.toml
File metadata and controls
97 lines (87 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
[build-system]
requires = ["setuptools >= 77.0.3"]
build-backend = "setuptools.build_meta"
[project]
name = "mokelumne"
version = "1.0.2"
dependencies = [
"apache-airflow-providers-fab>=3.6.1",
"apache-airflow-task-sdk == 1.3.1",
"authlib",
"flask-appbuilder",
"joserfc",
"langchain[aws]",
"langfuse",
"mokelumne-providers-ldc >= 1.1.1",
"mokelumne-providers-tind >= 1.1.1",
"pymarc",
"yarl",
]
requires-python = ">= 3.13, < 3.15"
authors = [
{name = "Anna Wilcox"},
{name = "maría a. matienzo"},
{name = "Jason Raitz"},
{name = "Daniel Schmidt"},
{name = "Yuchai Zhou"},
]
readme = "README.md"
license = "MIT"
[project.optional-dependencies]
test = [
"pytest",
"pytest-cov",
# Declared explicitly (rather than relying on Airflow's transitive install)
# so unit tests for FastAPI plugins keep working if Airflow ever drops or
# swaps its FastAPI dependency.
"fastapi",
"httpx",
# Keep the playwright client aligned with the minor version
# of the playwright service in the Compose file.
"playwright ~= 1.58.0",
"pytest-playwright",
]
lint = [
"mypy ~= 1.17.1",
"pydoclint ~= 0.6.10",
"pylint ~= 3.3",
]
[project.urls]
Repository = "https://github.com/BerkeleyLibrary/mokelumne"
Issues = "https://github.com/BerkeleyLibrary/mokelumne/issues"
[project.entry-points."airflow.plugins"]
static_files = "mokelumne.plugins.static_files:StaticFilesPlugin"
[tool.mypy]
python_version = "3.13"
warn_unused_configs = true
warn_redundant_casts = true
warn_return_any = true
[tool.setuptools.packages.find]
include = ['mokelumne*']
[tool.setuptools.package-data]
"mokelumne.plugins.static_files" = ["templates/*.html"]
"mokelumne.batch_image.templates" = ["*.html"]
[tool.pydoclint]
allow-init-docstring = true
skip-checking-raises = true
style = "sphinx"
[tool.pylint.messages_control]
disable = ["expression-not-assigned", "pointless-statement", "too-many-statements"]
[tool.pytest]
minversion = "9.0"
addopts = [
"-v",
"-s",
"--junit-xml=artifacts/pytest/airflow_test.xml",
"--tracing=retain-on-failure",
"--screenshot=only-on-failure",
"--output=artifacts/pytest/e2e",
"--cov-report=term",
"--cov-report=html:artifacts/coverage",
"--cov=mokelumne",
]
markers = [
"dags: test actual DAG / task code",
"e2e: end-to-end browser tests (require playwright sidecar and running Airflow stack)",
"unit: fast isolated unit tests with no external dependencies",
]