-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathpyproject.toml
More file actions
177 lines (164 loc) · 3.5 KB
/
pyproject.toml
File metadata and controls
177 lines (164 loc) · 3.5 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "conductor-python"
version = "0.0.0" # Do not change! Placeholder. Real version injected during build (edited)
description = "Python SDK for working with https://github.com/conductor-oss/conductor"
authors = ["Orkes <developers@orkes.io>"]
license = "Apache-2.0"
readme = "README.md"
packages = [
{ include = "conductor", from = "./src" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[tool.poetry.dependencies]
python = ">=3.9"
certifi = ">=14.05.14"
prometheus-client = ">=0.13.1"
six = ">=1.10"
requests = ">=2.31.0"
typing-extensions = ">=4.2.0"
astor = ">=0.8.1"
shortuuid = ">=1.0.11"
dacite = ">=1.8.1"
deprecated = ">=1.2.14"
python-dateutil = "^2.8.2"
httpx = {version = ">=0.26.0", extras = ["http2"]}
h2 = ">=4.1.0"
[tool.poetry.group.dev.dependencies]
pylint = ">=2.17.5"
coverage = ">=7.2.7"
pytest-cov = ">=4.1.0"
ruff = "^0.12.0"
pre-commit = "^4.2.0"
setuptools = "^80.9.0"
pytest = "^8.4.1"
[tool.ruff]
target-version = "py39"
line-length = 100
src = ["src"]
extend-exclude = [
"tests/",
"examples/",
"docs/",
"*.egg-info",
"build",
"dist",
]
fix = false
show-fixes = true
[tool.ruff.lint]
select = [
# pyflakes
"F",
# pycodestyle
"E", "W",
# flake8-2020
"YTT",
# flake8-bugbear
"B",
# flake8-quotes
"Q",
# flake8-debugger
"T10",
# flake8-gettext
"INT",
# pylint
"PL",
# flake8-pytest-style
"PT",
# misc lints
"PIE",
# flake8-pyi
"PYI",
# tidy imports
"TID",
# implicit string concatenation
"ISC",
# comprehensions
"C4",
# pygrep-hooks
"PGH",
# Ruff-specific rules
"RUF",
# flake8-bandit: exec-builtin
"S102",
# numpy-legacy-random
"NPY002",
# Perflint
"PERF",
# flynt
"FLY",
# flake8-logging-format
"G",
# flake8-future-annotations
"FA",
# unconventional-import-alias
"ICN001",
# flake8-slots
"SLOT",
# flake8-raise
"RSE"
]
ignore = [
"B008",
"C901",
"W191",
"E501",
"B011",
# too-many-arguments
"PLR0913",
# collapsible-else-if
"PLR5501",
# too-many-branches
"PLR0912",
# too-many-return-statements
"PLR0911",
# flake8-type-checking (150 errors)
"TC"
]
[tool.ruff.lint.isort]
known-first-party = ["conductor"]
required-imports = ["from __future__ import annotations"]
combine-as-imports = true
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint.per-file-ignores]
"src/conductor/client/http/**/*.py" = ["ALL"]
"src/conductor/client/orkes/api/*.py" = ["ALL"]
"tests/**/*.py" = ["B", "C4", "SIM"]
"examples/**/*.py" = ["B", "C4", "SIM"]
[tool.pytest.ini_options]
pythonpath = ["src"]
[tool.coverage.run]
source = ["src/conductor"]
omit = [
"tests/*",
"examples/*",
"*/__init__.py"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"pass",
"raise ImportError",
"except ImportError:",
"if TYPE_CHECKING:"
]