forked from nessshon/ton-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
145 lines (133 loc) · 2.96 KB
/
pyproject.toml
File metadata and controls
145 lines (133 loc) · 2.96 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
[build-system]
requires = ["setuptools>=80"]
build-backend = "setuptools.build_meta"
[project]
name = "ton-core"
description = "Python core for TON Blockchain — primitives, data types, and utilities."
requires-python = ">=3.10,<3.15"
authors = [
{ name = "nessshon" },
]
maintainers = [
{ name = "nessshon" },
]
dependencies = [
"pytoniq-core~=0.1.46",
]
keywords = [
"TON",
"TON blockchain",
"The Open Network",
"blockchain",
"crypto",
"smart contracts",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"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]
ton-core = "ton_core.cli:main"
[project.urls]
Homepage = "https://github.com/nessshon/ton-core/"
"Based on" = "https://github.com/yungwine/pytoniq-core"
[tool.setuptools.packages.find]
include = ["ton_core", "ton_core.*"]
[tool.setuptools.package-data]
ton_core = ["py.typed", "*.pyi"]
[tool.setuptools.dynamic]
version = { attr = "ton_core.__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 = [
# line too long
"E501",
# 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",
# move import into TYPE_CHECKING block
"TC001",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"ton_core/boc/*" = ["D"]
"ton_core/crypto/*" = ["D"]
"ton_core/tl/*" = ["D"]
"ton_core/tlb/*" = ["D"]
"ton_core/proof/*" = ["D"]
[tool.ruff.lint.isort]
known-first-party = ["ton_core"]
[tool.ruff.format]
quote-style = "double"
[tool.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",
]