-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpyproject.toml
More file actions
117 lines (97 loc) · 2.13 KB
/
pyproject.toml
File metadata and controls
117 lines (97 loc) · 2.13 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
107
108
109
110
111
112
113
114
115
116
117
[project]
name = "bolt11"
version = "2.2.0"
requires-python = ">=3.10,<3.13"
description = "A library for encoding and decoding BOLT11 payment requests."
authors = [
{ name = "eillarra", email = "[email protected]" },
{ name = "dni", email = "[email protected]" },
{ name = "Alan Bits", email = "[email protected]" },
]
urls = { Repository = "https://github.com/lnbits/bolt11" }
readme = "README.md"
license = "MIT"
dependencies = [
"click",
"base58",
"coincurve",
"bech32",
"bitstring",
]
[project.scripts]
bolt11 = "bolt11.cli:main"
[dependency-groups]
dev = [
"black",
"mypy",
"pytest",
"pytest-cov",
"pyright",
"pre-commit",
"ruff",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["bolt11"]
[tool.mypy]
ignore_missing_imports = "True"
files = "bolt11"
[tool.pytest.ini_options]
addopts = "-s --cov=bolt11 --cov-report=xml"
testpaths = [
"tests"
]
[tool.pyright]
reportMissingImports = false
include = [
"bolt11",
]
[tool.black]
line-length = 88
# previously experimental-string-processing = true
# this should autoformat string properly but does not work
preview = true
[tool.ruff]
# Same as Black. but black has a 10% overflow rule
line-length = 88
# 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]+?))$"
# Assume Python 3.8
# target-version = "py38"
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10