forked from hiero-ledger/hiero-sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
162 lines (141 loc) · 4.12 KB
/
pyproject.toml
File metadata and controls
162 lines (141 loc) · 4.12 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
[project]
name = "hiero-sdk-python"
dynamic = ["version"]
description = "A Hiero SDK in pure Python"
maintainers = [
{ name = "Nadine Loepfe", email = "nadine.loepfe@hashgraph.com" },
{ name = "Sophie Bulloch", email = "exploreriii57@gmail.com" }
]
authors = [
{ name = "Nadine Loepfe", email = "nadine.loepfe@hashgraph.com" },
{ name = "Richard Bair", email = "rbair23@users.noreply.github.com" }
]
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.10, <4"
dependencies = [
"protobuf>=4.21.12,<8",
"grpcio>=1.76.0,<2",
"cryptography>=44.0.1,<47",
"requests>=2.31.0,<3",
"pycryptodome>=3.18.0,<4",
"eth-abi>=5.1.0,<6",
"python-dotenv>=1.2.1,<3",
]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
]
[project.optional-dependencies]
eth = [
"eth-keys>=0.7.0,<0.8",
"rlp>=4.0.1,<5",
]
tck = ["flask>=3.0.0,<4"]
[dependency-groups]
dev = [
"grpcio-tools>=1.76.0,<2",
"pytest>=8.3.4,<10",
"pytest-cov>=7.0.0,<8",
"hypothesis>=6.137.2",
"pre-commit>=4.0.0",
]
lint = [
"ruff>=0.14.9,<1",
"mypy>=1.18.2,<2",
"typing-extensions>=4.15.0,<5",
]
[tool.uv]
default-groups = ["dev", "lint"]
[build-system]
requires = ["pdm-backend", "setuptools", "setuptools_scm", "grpcio-tools"]
build-backend = "pdm.backend"
[tool.setuptools_scm]
version_scheme = "python-simplified-semver"
local_scheme = "dirty-tag"
[tool.pdm]
version = { source = "scm" }
[tool.pdm.build]
package-dir = "src"
excludes = ["**/.pytest_cache"]
[tool.pytest.ini_options]
pythonpath = ["src", "."]
testpaths = ["tests"]
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort (Import sorting)
"B", # flake8-bugbear (Real logic bugs)
"UP", # pyupgrade (Modern syntax)
"SIM", # flake8-simplify
"PERF", # performance traps
"ARG", # unused function arguments
"RET", # return consistency
"RSE", # exception correctness
]
ignore = [
"D", # Docstrings handled by pydocstyle
"E501", # Ignore line-length in linter (let the formatter handle it)
"B008", # Allow function calls in defaults
"UP017", # Keep timezone.utc shorthand
"SIM105", # Allow 'try-except-pass'
]
[tool.ruff.lint.isort]
known-first-party = ["hiero_sdk_python"]
required-imports = ["from __future__ import annotations"]
combine-as-imports = true
split-on-trailing-comma = true
lines-after-imports = 2
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = [
"F401", # Unused imports in __init__
"I002", # No future annotations in __init__
]
"tests/**/*.py" = [
"S101", # Asserts for pytest
"PLR2004", # Magic numbers in test data
"ARG001", # Unused args for fixtures
"ANN", # No type hints required in tests
"PERF", # Disable list compression not found
"E712", # Allow '== True' in tests for explicit assertions
"D", # No docstrings required in tests
"ERA001", # commeneted code found
]
"examples/**/*.py" = [
"T201", # Print statements are fine here
"T203", # pprint is fine
"D100", # No module docstring
"I002", # Allow skipping future annotations
"PERF203", # try-except inside loops found
"ERA001", # commeneted code found
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.lychee]
exclude = [
"github.com/owner/repo",
"github.com/YOUR_",
"testnet.mirrornode.hedera.com/api/v1/transactions/0.0.123",
"localhost",
"github.com/user-attachments/assets/",
]
timeout = 20
retry_wait_time = 2
max_retries = 3