Files
pycord-reactive-views/pyproject.toml

118 lines
2.7 KiB
TOML

[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "pycord-reactive-views"
authors = [
{name = "Paillat-dev", email = "me@paillat.dev"},
]
description = "A py-cord extension for easy creation of reactive views"
readme = "README.md"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]
requires-python = ">=3.11"
dependencies = [
"py-cord>=2.6.0",
"typing-extensions<5,>=4.4.0",
]
license = {text = "MIT"}
dynamic = ["version", "urls"]
[dependency-groups]
dev = [
"basedpyright>=1.28.1",
"python-dotenv>=1.0.1",
"ruff>=0.9.9",
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/pycord_reactive_views/_version.py"
[tool.hatch.metadata.hooks.vcs.urls]
Homepage = "https://github.com/Paillat-dev/pycord-reactive-views"
source_archive = "https://github.com/Paillat-dev/pycord-reactive-views/archive/{commit_hash}.zip"
[tool.hatchling]
name = "pycord-reactive-views"
[tool.hatch.build]
include = [
"src/pycord_reactive_views/",
]
exclude = [
".copywrite.hcl",
".github",
".python-version",
"uv.lock",
]
[tool.hatch.build.targets.wheel]
packages = ["src/pycord_reactive_views"]
[tool.pyright]
pythonVersion = "3.11"
typeCheckingMode = "all"
reportUnusedCallResult = false
reportAny = false
executionEnvironments = [
{ root = "src/pycord_reactive_views/_version.py", reportDeprecated = false },
{ root = "examples", reportExplicitAny = false, reportUnknownMemberType = false, reportUnusedParameter = false, reportImplicitOverride = false, reportArgumentType = false }
]
[tool.ruff]
target-version = "py311"
line-length = 120
indent-width = 4
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
docstring-code-line-length = "dynamic"
exclude = [
"src/pycord_reactive_views/_version.py"
]
[tool.ruff.lint]
select = ["ALL"]
per-file-ignores = { "examples/**/*" = ["INP001", "ARG002"] }
extend-ignore = [
"N999",
"D104",
"D100",
"D103",
"D102",
"D101",
"D107",
"D105",
"D106",
"ANN401",
"TRY003",
"EM101",
"EM102",
"G004",
"PTH",
"D211",
"D213",
"COM812",
"ISC001",
"D203",
"FBT001",
"FBT002",
"PLR2004",
"PLR0913",
"C901"
]