-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
103 lines (91 loc) · 2.9 KB
/
pyproject.toml
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
98
99
100
101
102
103
[project]
name = "ot_orchestration"
version = "1.0.0"
description = "Open Targets Genetics Orchestration Pipeline"
authors = [{name = "Szymon Szyszkowski", email= "ss60@sanger.ac.uk"}]
readme = "README.md"
dynamic = ["dependencies", "requires-python"]
[tool.poetry]
packages = [{ include = "ot_orchestration", from = "src" }]
requires-poetry = ">=2.0"
[tool.poetry.dependencies]
python = "^3.10, <3.11"
apache-airflow = { extras = [
"apache-beam",
"async",
"celery",
"google",
"kubernetes",
"openlineage",
"postgres",
"sftp",
], version = "^2.9.2" }
apache-airflow-providers-google = "^10.22.0"
pyyaml = "^6.0.1"
google = "^3.0.0"
pendulum = "^3.0.0"
apache-airflow-providers-apache-beam = "^5.7.1"
requests = "^2.32.3"
pyhocon = "^0.3.61"
pandas = "2.1.4"
[tool.poetry.group.dev.dependencies]
ruff = "^0.4.9"
pytest = "^8.2.2"
mypy = "^1.10.0"
pre-commit = "^3.7.1"
coverage = "^7.5.4"
psycopg2-binary = "^2.9.9"
interrogate = "^1.7.0"
graphviz = "^0.20.3"
[tool.poetry.requires-plugins]
poetry-plugin-export = ">=1.8"
[tool.poetry.group.test.dependencies]
pytest-cov = "^5.0.0"
pytest-sugar = "^1.0.0"
pytest-xdist = "^3.6.1"
deptry = "^0.16.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# Semi-strict mode for mypy
[tool.mypy]
disallow_any_generics = true
disallow_incomplete_defs = true
no_implicit_optional = true
no_implicit_reexport = true
strict_equality = true
warn_redundant_casts = true
warn_unused_ignores = true
exclude = "src/ot_orchestration/dags/*"
plugins = ["returns.contrib.mypy.returns_plugin"]
[[tool.mypy.overrides]]
module = ["google.cloud.storage", "yaml"]
ignore_missing_imports = true
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["D", "I", "E"]
ignore = [
"E501", # line too long
"E731", # do not assign a lambda expression, use a def
"PLC0208", # Use a sequence type instead of a `set` when iterating over values
"PLR0911", # Too many return statements ({returns} > {max_returns})
"PLR0912", # Too many branches ({branches} > {max_branches})
"PLR0913", # Too many arguments to function call ({c_args} > {max_args})
"PLR0915", # Too many statements ({statements} > {max_statements})
"PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable
"PLW2901", # Outer {outer_kind} variable {name} overwritten by inner {inner_kind} target
"UP006", # keep type annotation style as is
"UP007", # keep type annotation style as is
"UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)`
"D107", # Ignore missing docstring in __init__
"D101", # Missing docstring in public class
]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.lint.pydocstyle]
convention = "google"
ignore-decorators = [
"airflow.decorators.task", # Don't require docstrings for Airflow tasks
"airflow.decorators.task_group.task_group", # ^ for airflow task groups
]