-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
128 lines (106 loc) · 3.1 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "root-signals"
description = "The Python SDK for API of Root Signals"
maintainers = [
{name = "Ari Heljakka", email="[email protected]"}
]
license = {file = "LICENSE"}
readme = "README.md"
requires-python = ">=3.10"
dynamic = ["version"]
dependencies = [
"aioitertools",
"asgiref",
"aiohttp",
"aiohttp_retry",
"pydantic>=2.6.2, <3",
"python-dateutil",
"requests",
"typing-extensions",
"validators",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: OS Independent",
"Operating System :: POSIX :: Linux",
"Operating System :: POSIX",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
[project.optional-dependencies]
# These are essentially development dependencies (hatch installs ^ + these)
dev = [
"furo", # sphinx theme
"hatch",
"mypy==1.14.1",
"myst_parser",
"pre-commit",
"pytest-asyncio",
"pytest",
"ruff",
"sphinx-autoapi",
"sphinx-markdown-builder",
"sphinx",
"twine", # for pypi uploads ( it has more convenient test/nontest handling than hatch)
"types-requests",
"validators",
]
[project.urls]
Homepage = "https://rootsignals.ai/"
Repository = "https://github.com/root-signals/rs-python-sdk"
CHANGELOG = "https://sdk.rootsignals.ai/en/latest/CHANGELOG.html"
[tool.hatch.build.targets.wheel]
packages = ["src/root"]
[tool.hatch.version]
path = "src/root/__about__.py"
[tool.mypy]
# Default target
files = "src/root/*.py"
exclude = ["tests", "src/root/generated"]
# ^ This doesn't seem to quite work, as when it is following the ^^
# imports it will give errors anyway. In Makefile we force it to
# ignore errors from not-explicitly-specified files.
# This enables bunch of checks
#
# Ideally we should use this someday. Especially with Python 3.8 base
# it is somewhat painful.
#
# strict = true
# and also this (not included in strict)
warn_unreachable = true
# Subset of strict options
# casting is bad, unnecessary casting worse
warn_redundant_casts = true
# unused type disables are confusing
warn_unused_ignores = true
# the code should be typed
disallow_incomplete_defs = true
disallow_untyped_defs = true
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["A", "B", "C", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "T20"]
ignore = ["A002", "S101"]
[tool.ruff.lint.per-file-ignores]
# openapi generator doesn't produce particularly good output
"src/root/generated/**/*.py" = ["B904", "C", "E", "F", "N", "S110"]
# T201 = print statement, we use it intentionally
"examples/*.py" = ["T201", "E501"]
"examples.py" = ["T201", "E501"]
[tool.pytest.ini_options]
pythonpath = [
"src",
"tests",
]