-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
111 lines (97 loc) · 2.43 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
104
105
106
107
108
109
110
111
[project]
name = "resonate-sdk"
version = "0.4.4"
description = "Distributed Async Await by Resonate HQ, Inc"
authors = [
{ name = "Resonate HQ, Inc", email = "[email protected]" }
]
dependencies = [
"typing-extensions>=4.12.2",
"requests",
"opentelemetry-api",
"opentelemetry-sdk",
"opentelemetry-exporter-otlp-proto-http",
]
readme = "README.md"
requires-python = ">= 3.9"
license = { text = "Apache-2.0" }
[project.urls]
Documentation = "https://github.com/resonatehq/resonate-sdk-py#readme"
Issues = "https://github.com/resonatehq/resonate-sdk-py/issues"
Source = "https://github.com/resonatehq/resonate-sdk-py"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.rye]
managed = true
dev-dependencies = [
"mypy>=1.10.0",
"pytest>=8.2.0",
"types-requests>=2.32.0.20240712",
"ruff>=0.6.3",
"pydoctor>=24.11.2",
"pydoclint>=0.5.8",
"vulture>=2.13",
]
[tool.rye.scripts]
check-types = "dmypy run --timeout 60 -- src tests"
find-deadcode = "vulture src tests"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/resonate"]
[tool.ruff]
unsafe-fixes = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"A001",
"A002",
"D",
"ANN101",
"COM812",
"ISC001",
"S101",
"ARG002",
"ARG003",
]
logger-objects = ["resonate.logging.logger"]
[tool.ruff.lint.isort]
combine-as-imports = true
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = ["INP001", "S101", "D"]
"scripts/*.py" = ["INP001"]
[tool.pytest.ini_options]
testpaths = ["tests"]
xfail_strict = true
addopts = [
"--import-mode=importlib",
"--strict-markers",
]
markers = [
"integration: mark integration tests.",
"unit: mark unittest.",
"dev: mark tests on development.",
"dst: mark dst tests.",
]
log_cli = true
log_cli_level = "INFO"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
[tool.mypy]
mypy_path = "src"
plugins = []
follow_imports = "normal"
strict_optional = false
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
warn_unused_configs = true
disallow_subclassing_any = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
disallow_untyped_calls = true
disallow_untyped_defs = true
explicit_package_bases = true