Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
106 lines (92 loc) · 2 KB
/
Copy pathpyproject.toml
File metadata and controls
106 lines (92 loc) · 2 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
[project]
name = "lnurl"
version = "2.0.2"
requires-python = ">=3.10,<3.13"
description = "LNURL implementation for Python."
authors = [{ name = "Alan Bits", email = "alan@lnbits.com" }]
urls = { Repository = "https://github.com/lnbits/lnurl" }
readme = "README.md"
license = "MIT"
dependencies = [
"pydantic>=2.10.0,<3.0.0",
"pycryptodomex>=3.21.0",
"bip32>=5.0.0",
"bech32",
"bolt11",
"httpx[socks]",
"coincurve>=20.0.0",
]
[dependency-groups]
dev = [
"black>=24.3.0",
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"types-requests",
"mypy>=1.17.1",
"ruff>=0.12.3",
"pre-commit>=3.3.3",
"pytest-asyncio>=0.23.6",
]
[project.scripts]
lnurl = "lnurl.cli:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["lnurl"]
[tool.mypy]
ignore_missing_imports = "True"
files = "lnurl"
plugins = "pydantic.mypy"
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true
[tool.pytest.ini_options]
testpaths = [
"tests"
]
[tool.black]
line-length = 120
preview = true
[tool.ruff]
# Same as Black. but black has a 10% overflow rule
line-length = 120
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
[tool.ruff.lint]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
# (`I`) means isorting
select = ["E", "F", "I"]
ignore = []
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10