forked from tonfactory/tonsdk
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: partially add type annotations
- Loading branch information
Showing
23 changed files
with
765 additions
and
2,131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,81 @@ | ||
[tool.poetry] | ||
[project] | ||
name = "tonsdk_ng" | ||
version = "0.1.0" | ||
description = "Python SDK for TON" | ||
authors = ["tonfactory.org"] | ||
license = "Apache-2.0" | ||
keywords = ["TON", "TON SDK", "TON utils", "TON tools"] | ||
readme = "README.md" | ||
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", | ||
"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"] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.10" | ||
pynacl = { version = ">=1.4.0" } | ||
bitarray = { version = "==2.6.0" } | ||
httpj = { version = "*", optional = true } | ||
[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" | ||
|
||
[tool.poetry.extras] | ||
[project.optional-dependencies] | ||
http_api = ["httpj"] | ||
full = ["httpj"] | ||
dev = [ | ||
"black", | ||
"commitizen", | ||
"furo", | ||
"isort", | ||
"mypy", | ||
"pre-commit", | ||
"pytest", | ||
"ruff", | ||
] | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
black = "*" | ||
commitizen = "*" | ||
furo = "*" | ||
isort = "*" | ||
mypy = "*" | ||
pre-commit = "*" | ||
pytest = "*" | ||
pytest-cov = "*" | ||
ruff = "*" | ||
[build-system] | ||
requires = ["hatchling", "hatch-fancy-pypi-readme"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.hatch.version] | ||
path = "tonsdk_ng/__version__.py" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" | ||
[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"] | ||
|
@@ -72,7 +95,7 @@ exclude = [ | |
".pants.d", | ||
".ruff_cache", | ||
".svn", | ||
".tox", | ||
".x", | ||
".venv", | ||
"__pypackages__", | ||
"_build", | ||
|
@@ -116,11 +139,19 @@ 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/*"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
__title__ = "tonsdk_ng" | ||
__description__ = "Ton SDK" | ||
__version__ = "0.1.0" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.