-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (86 loc) · 2.32 KB
/
Copy pathpyproject.toml
File metadata and controls
96 lines (86 loc) · 2.32 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "trontxsize"
version = "1.2.0"
description = "Calculate tron transaction size (bandwidth)"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
authors = [{ name = "MrNaif2018", email = "chuff184@gmail.com" }]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"Programming Language :: Python :: 3",
"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",
]
keywords = ["tron", "trx", "bitcart", "bandwidth"]
dependencies = ["protobuf", "base58"]
[project.urls]
Homepage = "https://github.com/bitcart/trontxsize"
Source = "https://github.com/bitcart/trontxsize"
Changelog = "https://github.com/bitcart/trontxsize/blob/master/CHANGELOG.md"
[dependency-groups]
lint = ["mypy", "prek", "ruff"]
test = ["pytest", "pytest-cov", "pytest-durations", "tronpy"]
dev = [
"rust-just>=1.46.0",
{ include-group = "lint" },
{ include-group = "test" },
]
[tool.hatch.build.targets.wheel]
packages = ["trontxsize"]
[tool.ruff]
target-version = "py310"
line-length = 127
extend-exclude = ["trontxsize/tron_pb2.py"]
[tool.ruff.lint]
select = [
"F",
"E",
"I",
"UP",
"YTT",
"B",
"T10",
"C",
"SIM",
"RUF100",
"RET",
"A",
"S",
"ASYNC",
]
ignore = ["RET502", "RET503", "S104", "S507", "ASYNC110"]
mccabe = { max-complexity = 12 }
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S"]
[tool.mypy]
warn_redundant_casts = true
warn_unused_ignores = true
disallow_untyped_calls = true
disallow_untyped_defs = true
check_untyped_defs = true
warn_return_any = true
no_implicit_optional = true
strict_optional = true
ignore_missing_imports = true
exclude = ["tests", "trontxsize/tron_pb2.py"]
[tool.pytest.ini_options]
junit_duration_report = "call"
junit_suite_name = "trontxsize_test_suite"
addopts = ["--cov=trontxsize", "--cov-report", "term-missing"]
filterwarnings = [
"error::DeprecationWarning",
"error::PendingDeprecationWarning",
]
[tool.coverage.run]
source = ["."]
omit = ["trontxsize/tron_pb2.py"]