forked from nessshon/tonapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
156 lines (144 loc) · 3.33 KB
/
pyproject.toml
File metadata and controls
156 lines (144 loc) · 3.33 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
[build-system]
requires = ["setuptools>=80"]
build-backend = "setuptools.build_meta"
[project]
name = "pytonapi"
description = "Python SDK for TONAPI — REST API, streaming, and webhooks for TON blockchain."
requires-python = ">=3.10,<3.15"
authors = [
{ name = "nessshon" },
]
maintainers = [
{ name = "nessshon" },
]
dependencies = [
"aiohttp>=3.9.0",
"pydantic>=2.4.1,<3.0",
]
keywords = [
"AsyncIO",
"REST API",
"SDK",
"TON",
"TON blockchain",
"TONAPI",
"The Open Network",
"blockchain",
"crypto",
"streaming",
"webhooks",
]
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.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]
pytonapi = "pytonapi.cli:main"
[project.urls]
Homepage = "https://github.com/nessshon/tonapi/"
Examples = "https://github.com/nessshon/tonapi/tree/main/examples/"
[tool.setuptools.packages.find]
include = ["pytonapi", "pytonapi.*"]
[tool.setuptools.package-data]
pytonapi = ["py.typed"]
[tool.setuptools.dynamic]
version = { attr = "pytonapi.__meta__.__version__" }
[tool.ruff]
target-version = "py310"
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",
]
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",
# 1 blank line required between summary and description (multi-line summary)
"D205",
# multi-line summary second line (conflicts D212)
"D213",
# first word capitalization (false positive for proper nouns like dApp)
"D403",
# type-checking import (false positive for Pydantic models)
"TC001",
"TC002",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"pytonapi/rest/models/*" = ["D101"]
"tests/*" = ["D101", "D102", "T20"]
"tests/rest/fixtures.py" = ["E501"]
"codegen/*" = ["T20"]
"examples/*" = ["D", "T20", "RUF006", "RUF059"]
[tool.ruff.lint.isort]
known-first-party = ["pytonapi"]
[tool.ruff.format]
quote-style = "double"
[tool.mypy]
plugins = ["pydantic.mypy"]
python_version = "3.10"
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",
]