Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (113 loc) · 3.33 KB
/
Copy pathpyproject.toml
File metadata and controls
133 lines (113 loc) · 3.33 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[tool.poetry]
name = "hera-workflows"
# The version is automatically substituted by the CI
version = "0.0.0-dev"
description = "Hera is a Python framework for constructing and submitting Argo Workflows. The main goal of Hera is to make Argo Workflows more accessible by abstracting away some setup that is typically necessary for constructing Argo workflows."
authors = ["Flaviu Vadan <flaviu.vadan@dynotx.com>", "Sambhav Kothari <sambhavs.email@gmail.com>", "Elliot Gunton <elliotgunton@gmail.com>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/argoproj-labs/hera-workflows"
repository = "https://github.com/argoproj-labs/hera-workflows"
documentation = "https://github.com/argoproj-labs/hera-workflows/README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
packages = [
{ include = "hera", from = "src" }
]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/argoproj-labs/hera-workflows/issues"
[tool.poetry.dependencies]
python = ">=3.8,<4"
pyyaml = { version = ">=6.0", optional = true }
requests = "*"
pydantic = {extras = ["email"], version = ">=1.7,<2.0"}
[tool.poetry.extras]
yaml = ["PyYAML"]
[tool.poetry.group.dev.dependencies]
pytest = "*"
pytest-cov = "*"
black = "*"
mypy = "*"
build = "*"
ruff = "*"
types-PyYAML = "*"
jsonpath-ng = "^1.5.3"
datamodel-code-generator = {extras = ["http"], version = "^0.17.1"}
types-requests = "^2.28.11.12"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 119
max-line-length = 119
target-version = ['py38']
[tool.pytest.ini_options]
addopts = "--durations=5 -vv --cov=hera --cov-report=term-missing --cov-report=xml --cov-config=pyproject.toml"
filterwarnings = [
# Hide the hera.host_config deprecations
'ignore:.*is deprecated in favor of `global_config.GlobalConfig',
]
# Convert the following to config
[tool.mypy]
namespace_packages = true
explicit_package_bases = true
show_traceback = true
python_version = "3.8"
mypy_path = "src"
check_untyped_defs = true
no_implicit_optional = true
strict_optional = false
[[tool.mypy.overrides]]
module = "mypy-argo.workflows.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "mypy-urllib3.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "mypy-pytz.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "mypy-pkg_resources.*"
ignore_missing_imports = true
[tool.coverage.run]
branch = true
parallel = true
omit = [
"**/models/**",
]
[tool.coverage.report]
exclude_lines = [
"if TYPE_CHECKING:",
"pragma: no cover",
"raise NotImplementedError()",
"except ImportError",
"_yaml = None",
]
precision = 1
skip_covered = true
show_missing = true
[tool.coverage.paths]
source = [
"src/hera",
]
[tool.ruff]
line-length = 119
show-fixes = true
ignore = ["E501"]
target-version = "py38"
extend-select = ["I"]
[tool.ruff.per-file-ignores]
"**/__init__.py" = ["F401"]
[tool.ruff.isort]
force-wrap-aliases = true
combine-as-imports = true
known-first-party = ["hera"]