91 lines
1.9 KiB
TOML
91 lines
1.9 KiB
TOML
[project]
|
|
name = "nostrrelay"
|
|
version = "1.1.0"
|
|
requires-python = ">=3.10,<3.13"
|
|
description = "LNbits, free and open-source Lightning wallet and accounts system."
|
|
authors = [{ name = "Alan Bits", email = "alan@lnbits.com" }]
|
|
urls = { Homepage = "https://lnbits.com", Repository = "https://github.com/lnbits/nostrrelay" }
|
|
dependencies = [ "lnbits>1" ]
|
|
|
|
[tool.poetry]
|
|
package-mode = false
|
|
|
|
[dependency-groups]
|
|
dev= [
|
|
"black",
|
|
"pytest-asyncio",
|
|
"pytest",
|
|
"mypy==1.17.1",
|
|
"pre-commit",
|
|
"ruff",
|
|
"pytest-md",
|
|
]
|
|
|
|
[tool.mypy]
|
|
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]
|
|
log_cli = false
|
|
testpaths = [
|
|
"tests"
|
|
]
|
|
|
|
[tool.black]
|
|
line-length = 88
|
|
|
|
[tool.ruff]
|
|
# Same as Black. + 10% rule of black
|
|
line-length = 88
|
|
exclude = [
|
|
"boltz_client"
|
|
]
|
|
|
|
|
|
[tool.ruff.lint]
|
|
# Enable:
|
|
# F - pyflakes
|
|
# E - pycodestyle errors
|
|
# W - pycodestyle warnings
|
|
# I - isort
|
|
# A - flake8-builtins
|
|
# C - mccabe
|
|
# N - naming
|
|
# UP - pyupgrade
|
|
# RUF - ruff
|
|
# B - bugbear
|
|
select = ["F", "E", "W", "I", "A", "C", "N", "UP", "RUF", "B"]
|
|
# UP007: pyupgrade: use X | Y instead of Optional. (python3.10)
|
|
ignore = ["UP007"]
|
|
|
|
# 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]+?))$"
|
|
|
|
# needed for pydantic
|
|
[tool.ruff.lint.pep8-naming]
|
|
classmethod-decorators = [
|
|
"root_validator",
|
|
]
|
|
|
|
# Ignore unused imports in __init__.py files.
|
|
# [tool.ruff.lint.extend-per-file-ignores]
|
|
# "views_api.py" = ["F401"]
|
|
|
|
[tool.ruff.lint.mccabe]
|
|
max-complexity = 11
|
|
|
|
[tool.ruff.lint.flake8-bugbear]
|
|
# Allow default arguments like, e.g., `data: List[str] = fastapi.Query(None)`.
|
|
extend-immutable-calls = [
|
|
"fastapi.Depends",
|
|
"fastapi.Query",
|
|
]
|