-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (82 loc) · 2.63 KB
/
Copy pathpyproject.toml
File metadata and controls
97 lines (82 loc) · 2.63 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
[build-system]
requires = ["poetry-core>=1.6.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "heleket-sdk"
version = "0.3.0"
description = "Reference Python SDK for the Heleket cryptocurrency payment API: payments, payouts, balance, exchange rates, and signed webhooks."
authors = ["Heleket Reference SDK Authors"]
license = "MIT"
readme = "README.md"
homepage = "https://heleket.com"
repository = "https://github.com/Heleket/python-sdk"
documentation = "https://doc.heleket.com/"
keywords = ["heleket", "crypto", "cryptocurrency", "payments", "payouts", "sdk", "api", "webhooks"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Office/Business :: Financial",
"Operating System :: OS Independent",
"Typing :: Typed",
]
packages = [{ include = "heleket_sdk", from = "src" }]
include = [
{ path = "CHANGELOG.md", format = "sdist" },
{ path = "UPGRADING.md", format = "sdist" },
]
[tool.poetry.urls]
Changelog = "https://github.com/Heleket/python-sdk/blob/main/CHANGELOG.md"
"Bug Tracker" = "https://github.com/Heleket/python-sdk/issues"
[tool.poetry.dependencies]
python = "^3.11"
pydantic = "^2.5"
requests = "^2.31"
[tool.poetry.group.dev.dependencies]
pytest = "^8.0"
pytest-cov = "^5.0"
ruff = "^0.5"
mypy = "^1.10"
types-requests = "^2.31"
[tool.poetry.scripts]
heleket-webhook-inspect = "heleket_sdk._cli:main"
# ---------- ruff ----------------------------------------------------------------
[tool.ruff]
line-length = 100
target-version = "py311"
src = ["src", "tests", "examples", "bin"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # bugbear
"UP", # pyupgrade
"PL", # pylint subset
"SIM", # simplifications
]
ignore = [
"PLR0913", # too many arguments — DTO constructors are intentionally wide
"PLR2004", # magic numbers — fine in tests
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["PLR2004", "S101"]
"examples/*" = ["T201"] # print() is the point in examples
[tool.ruff.format]
quote-style = "double"
# ---------- mypy ----------------------------------------------------------------
[tool.mypy]
python_version = "3.11"
strict = true
plugins = ["pydantic.mypy"]
files = ["src/heleket_sdk"]
[tool.pydantic-mypy]
init_forbid_extra = false
init_typed = true
warn_required_dynamic_aliases = true
# ---------- pytest --------------------------------------------------------------
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["tests"]
addopts = "-ra --strict-markers --strict-config"