-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathpyproject.toml
More file actions
168 lines (154 loc) · 3.53 KB
/
Copy pathpyproject.toml
File metadata and controls
168 lines (154 loc) · 3.53 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
163
164
165
166
167
168
[build-system]
requires = ["setuptools>=80"]
build-backend = "setuptools.build_meta"
[project]
name = "tonutils"
description = "Python SDK for TON Blockchain — wallets, contracts, and more via ADNL and HTTP APIs."
requires-python = ">=3.9,<3.15"
authors = [
{ name = "nessshon" },
]
maintainers = [
{ name = "nessshon" },
]
dependencies = [
"aiohttp>=3.9.0",
"ton-core>=0.5.0",
]
keywords = [
"ADNL",
"AsyncIO",
"SDK",
"TON",
"TON blockchain",
"The Open Network",
"blockchain",
"crypto",
"lite server",
"smart contracts",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"Intended Audience :: Financial and Insurance Industry",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.9",
"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",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dynamic = ["version"]
readme = "README.md"
license = "MIT"
[project.scripts]
tonutils = "tonutils.cli:main"
[project.urls]
Homepage = "https://github.com/nessshon/tonutils/"
Examples = "https://github.com/nessshon/tonutils/tree/main/examples/"
Documentation = "https://tonutils.ness.uz"
[project.optional-dependencies]
test = [
"environs>=11.0",
"pytest>=8.0",
"pytest-asyncio>=0.25",
]
[tool.setuptools.packages.find]
include = ["tonutils", "tonutils.*"]
[tool.setuptools.package-data]
tonutils = ["py.typed"]
[tool.setuptools.dynamic]
version = { attr = "tonutils.__meta__.__version__" }
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_test_loop_scope = "session"
asyncio_default_fixture_loop_scope = "session"
testpaths = ["tests"]
[tool.ruff]
target-version = "py39"
line-length = 120
[tool.ruff.lint]
select = [
# pydocstyle
"D",
# pycodestyle
"E",
"W",
# pyflakes
"F",
# isort
"I",
# flake8-bugbear
"B",
# flake8-comprehensions
"C4",
# pyupgrade
"UP",
# flake8-simplify
"SIM",
# type-checking imports
"TCH",
# perflint
"PERF",
# flake8-debugger
"T10",
# flake8-print
"T20",
# flake8-pie
"PIE",
# pylint errors
"PLE",
# flake8-return
"RET",
# ruff-specific
"RUF",
# flake8-bandit (security)
"S",
]
ignore = [
# docstring in public module
"D100",
# docstring in public package
"D104",
# docstring in magic method
"D105",
# docstring in __init__
"D107",
# blank line before class docstring (conflicts D211)
"D203",
# multi-line summary second line (conflicts D212)
"D213",
# assert usage (acceptable in non-web SDK for internal invariants)
"S101",
# binding to all interfaces (required for UDP transport)
"S104",
# move import into TYPE_CHECKING block
"TC001",
"TC002",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"examples/*" = ["T201", "D"]
"tests/*" = ["D", "S101"]
[tool.ruff.lint.isort]
known-first-party = ["tonutils"]
[tool.ruff.format]
quote-style = "double"
[tool.mypy]
python_version = "3.9"
strict = true
pretty = true
show_error_codes = true
show_error_context = true
namespace_packages = true
follow_imports_for_stubs = true
warn_unreachable = true
enable_error_code = [
"ignore-without-code",
"redundant-cast",
"truthy-bool",
]