-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (71 loc) · 2.21 KB
/
pyproject.toml
File metadata and controls
80 lines (71 loc) · 2.21 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
[project]
name = "nexus-rpc"
# The nexus-rpc name in PyPi was originally held by an unrelated project that reached
# 1.0.1 and was abandoned in 2018. The name was inherited by the Python Nexus SDK in
# 2025 and version numbering started from 1.1.0. Despite the version number, this is an
# experimental release and backwards-incompatible changes are anticipated until a GA
# release is announced.
version = "1.4.0"
description = "Nexus Python SDK"
readme = "README.md"
authors = [{ name = "Temporal Technologies", email = "sdk@temporal.io" }]
requires-python = ">=3.10"
license = "MIT"
license-files = ["LICENSE"]
dependencies = ["typing-extensions>=4.12.2"]
[dependency-groups]
dev = [
"basedpyright>=1.30.1",
"mypy>=1.15.0",
"poethepoet>=0.35.0",
"pydoctor>=25.4.0",
"pyright>=1.1",
"pytest>=8.3.5",
"pytest-asyncio>=0.26.0",
"pytest-cov>=6.1.1",
"pytest-pretty>=1.3.0",
"ruff>=0.14.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/nexusrpc"]
[tool.poe.tasks]
lint = [
{ cmd = "uv run basedpyright" },
{ cmd = "uv run pyright" },
{ cmd = "uv run mypy --check-untyped-defs src" },
{ cmd = "uv run ruff check --select I" },
{ cmd = "uv run ruff format --check" },
]
format = [
{ cmd = "uv run ruff check --select I --fix" },
{ cmd = "uv run ruff format" },
]
docs = [{ cmd = "uv run pydoctor src/nexusrpc" }]
[tool.pyright]
# https://microsoft.github.io/pyright/#/configuration?id=type-check-rule-overrides
# https://docs.basedpyright.com/v1.30.0/configuration/config-files/#diagnostic-settings-defaults
reportAny = "none"
reportDeprecated = "none"
reportExplicitAny = "none"
reportIgnoreCommentWithoutRule = "none"
reportImplicitOverride = "none"
reportImplicitStringConcatenation = "none"
reportImportCycles = "none"
reportUnannotatedClassAttribute = "none"
reportUnknownArgumentType = "none"
reportUnknownMemberType = "none"
reportUnknownVariableType = "none"
reportUnnecessaryTypeIgnoreComment = "none"
enableTypeIgnoreComments = true
include = ["src", "tests"]
[tool.mypy]
disable_error_code = ["empty-body"]
[tool.ruff]
target-version = "py310"
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.pydoctor]
docformat = "google"