-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
155 lines (136 loc) · 3.73 KB
/
Copy pathpyproject.toml
File metadata and controls
155 lines (136 loc) · 3.73 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
[project]
name = "uipath-runtime"
version = "0.11.0"
description = "Runtime abstractions and interfaces for building agents and automation scripts in the UiPath ecosystem"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
dependencies = [
"uipath-core>=0.5.18, <0.6.0",
# Governance native-evaluator deps. Live here because the native
# evaluator implementation lives in uipath.runtime.governance.native;
# uipath-core only carries the small governance contracts.
"pyyaml>=6.0",
"vaderSentiment>=3.3.2", # sentiment_concern (A.3.3)
"chardet>=5.2.0", # encoding_concern (A.7.4)
]
classifiers = [
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
maintainers = [
{ name = "Cristian Pufu", email = "cristian.pufu@uipath.com" },
]
[project.urls]
Homepage = "https://uipath.com"
Repository = "https://github.com/UiPath/uipath-runtime-python"
Documentation = "https://uipath.github.io/uipath-python/"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"bandit>=1.8.2",
"mypy>=1.14.1",
"ruff>=0.9.4",
"rust-just>=1.39.0",
"pytest>=7.4.0",
"pytest-asyncio>=1.0.0",
"pytest-httpx>=0.35.0",
"pytest-trio>=0.8.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.11.1",
"pre-commit>=4.1.0",
"types-PyYAML>=6.0",
]
[tool.hatch.build.targets.wheel]
packages = ["src/uipath"]
[tool.ruff]
line-length = 88
indent-width = 4
exclude = ["samples/**", "testcases/**"]
[tool.ruff.lint]
select = ["E", "F", "B", "I", "D"]
ignore = ["D417"]
[tool.ruff.lint.pydocstyle]
convention = "google"
ignore-decorators = []
[tool.ruff.lint.per-file-ignores]
"*" = ["E501"]
"tests/**" = ["D"]
"*_test.py" = ["D"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.mypy]
plugins = ["pydantic.mypy"]
mypy_path = "src"
explicit_package_bases = true
namespace_packages = true
follow_imports = "silent"
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
disallow_untyped_defs = false
# Third-party governance-evaluator libs have no type stubs / py.typed marker
[[tool.mypy.overrides]]
module = [
"yaml",
"vaderSentiment.*",
"chardet",
"price_parser",
# uipath.platform.common is imported lazily from traces.py / audit
# sinks to read UiPathConfig context attributes. It's first-party but
# not a uipath-runtime dep, so its stubs aren't installable here.
"uipath.platform.*",
# Optional framework adapters; the absence of the framework simply
# means the adapter no-ops at import time.
"agents",
"langchain_core.*",
"langgraph.*",
]
ignore_missing_imports = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
addopts = "-ra -q --cov=src/uipath --cov-report=term-missing"
asyncio_default_fixture_loop_scope = "function"
asyncio_mode = "auto"
[tool.coverage.run]
source = ["src/uipath"]
relative_files = true
omit = [
"*/tests/*",
"*/__pycache__/*",
"*/site-packages/*",
"*/conftest.py",
]
[tool.coverage.report]
show_missing = true
precision = 2
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"@(abc\\.)?abstractmethod",
]
[tool.uv]
exclude-newer = "2 days"
[tool.uv.exclude-newer-package]
uipath-core = false
[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true