forked from tonfactory/tonsdk
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
157 lines (142 loc) · 3.13 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
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
[project]
name = "tonsdk_ng"
description = "Python SDK for TON"
license = "Apache-2.0"
requires-python = ">=3.10"
authors = [
{ name = "Andrey Torsunov", email = "[email protected]"},
# "tonfactory.org",
]
homepage = "https://github.com/gtors/tonsdk_ng"
keywords = ["TON", "TON SDK", "TON utils", "TON tools"]
classifiers = [
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Adaptive Technologies",
]
dependencies = [
"pynacl>=1.4.0",
"bitarray~=2.6.0",
"typing-extensions~=4.11",
]
readme="README.md"
dynamic = ["version"]
[project.urls]
Changelog = "https://github.com/gtors/tonsdk_ng/blob/master/CHANGELOG.md"
Homepage = "https://github.com/gtors/tonsdk_ng"
Source = "https://github.com/gtors/tonsdk_ng"
[project.optional-dependencies]
http_api = ["httpj"]
full = ["httpj"]
dev = [
"black",
"commitizen",
"furo",
"isort",
"mypy",
"pre-commit",
"pytest",
"ruff",
]
[build-system]
requires = ["hatchling", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "tonsdk_ng/__version__.py"
[tool.hatch.build.targets.sdist]
include = [
"/tonsdk_ng",
"/CHANGELOG.md",
"/README.md",
]
[tool.hatch.envs.default]
features = ["dev"]
[tool.commitizen]
name = "cz_conventional_commits"
version = "0.1.0"
version_files = [
"tonsdk_ng/__version__.py:__version__"
]
tag_format = "$version"
update_changelog_on_bump = true
[tool.black]
target-version = ["py310", "py311"]
line-length = 80
[tool.ruff]
line-length = 80
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".hypothesis",
".pants.d",
".ruff_cache",
".svn",
".x",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
target-version = "py310"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "F403"]
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
#"I",
]
ignore = [
# star imports
"F405", "F403",
# lambda expression assignment
"E731",
# Loop control variable not used within loop body
"B007",
# Abstract class without abstract methods
"B024",
]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.mypy]
python_version = "3.10"
strict = true
ignore_missing_imports = true
check_untyped_defs = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
check_untyped_defs = true
[tool.isort]
profile = "black"
py_version=310
line_length = 80
[tool.coverage.run]
include = ["tonsdk_ng/*", "tests/*"]