2025-03-09 11:40:49 +01:00
|
|
|
[build-system]
|
2025-03-13 10:02:12 +01:00
|
|
|
requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme"]
|
2025-03-09 11:40:49 +01:00
|
|
|
build-backend = "hatchling.build"
|
|
|
|
|
|
2025-03-08 18:16:37 +01:00
|
|
|
[project]
|
|
|
|
|
name = "pycord-rest-bot"
|
2025-03-13 10:02:12 +01:00
|
|
|
dynamic = ["version", "urls", "readme"]
|
|
|
|
|
description = "A lightweight wrapper for Discord's HTTP interactions and webhook events using py-cord and FastAPI"
|
2025-03-08 18:16:37 +01:00
|
|
|
authors = [
|
|
|
|
|
{ name = "Paillat-dev", email = "me@paillat.dev" }
|
|
|
|
|
]
|
2025-03-08 20:23:23 +01:00
|
|
|
license = "MIT"
|
2025-12-08 19:10:39 +01:00
|
|
|
requires-python = ">=3.12, <4.0"
|
2025-03-08 20:23:23 +01:00
|
|
|
classifiers = [
|
|
|
|
|
"Development Status :: 3 - Alpha",
|
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
|
"Programming Language :: Python :: 3 :: Only",
|
2025-03-09 19:28:40 +01:00
|
|
|
"Programming Language :: Python :: 3.12",
|
|
|
|
|
"Typing :: Typed",
|
|
|
|
|
"Operating System :: OS Independent",
|
2025-03-08 20:23:23 +01:00
|
|
|
]
|
|
|
|
|
keywords = ["discord", "bot", "rest", "pycord"]
|
2025-03-08 18:16:37 +01:00
|
|
|
dependencies = [
|
|
|
|
|
"fastapi>=0.115.11",
|
|
|
|
|
"orjson>=3.10.15",
|
2025-08-31 12:44:33 +02:00
|
|
|
"py-cord>=2.7.0rc1",
|
2025-03-08 18:16:37 +01:00
|
|
|
"pynacl>=1.5.0",
|
|
|
|
|
"uvicorn>=0.34.0",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[dependency-groups]
|
|
|
|
|
dev = [
|
|
|
|
|
"basedpyright>=1.28.1",
|
|
|
|
|
"python-dotenv>=1.0.1",
|
|
|
|
|
"ruff>=0.9.9",
|
|
|
|
|
]
|
|
|
|
|
|
2025-03-08 20:23:23 +01:00
|
|
|
[tool.hatch.version]
|
|
|
|
|
source = "vcs"
|
|
|
|
|
|
|
|
|
|
[tool.hatch.build.hooks.vcs]
|
|
|
|
|
version-file = "src/pycord_rest/_version.py"
|
|
|
|
|
|
|
|
|
|
[tool.hatch.metadata.hooks.vcs.urls]
|
|
|
|
|
Homepage = "https://github.com/Paillat-dev/pycord-rest"
|
|
|
|
|
source_archive = "https://github.com/Paillat-dev/pycord-rest/archive/{commit_hash}.zip"
|
|
|
|
|
|
2025-03-13 10:02:12 +01:00
|
|
|
[tool.hatch.metadata.hooks.fancy-pypi-readme]
|
|
|
|
|
content-type = "text/markdown"
|
|
|
|
|
|
|
|
|
|
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
|
|
|
|
|
path = "README.md"
|
|
|
|
|
start-after = "<!-- badges -->\n"
|
|
|
|
|
end-before = "\n<!-- end badges -->"
|
|
|
|
|
|
|
|
|
|
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
|
|
|
|
|
text = "\n\n---\n"
|
|
|
|
|
|
|
|
|
|
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
|
|
|
|
|
path = "README.md"
|
|
|
|
|
start-after = "## Overview\n"
|
|
|
|
|
end-before = "\n## Installation"
|
|
|
|
|
|
|
|
|
|
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
|
|
|
|
|
path = "README.md"
|
|
|
|
|
start-after = "<!-- quick-start -->"
|
|
|
|
|
|
|
|
|
|
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
|
|
|
|
|
pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
|
|
|
|
|
replacement = '[\1](https://github.com/Paillat-dev/pycord-rest/tree/main\g<2>)'
|
|
|
|
|
|
|
|
|
|
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
|
|
|
|
|
pattern = '\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]'
|
|
|
|
|
replacement = '**\1**:'
|
|
|
|
|
|
2025-03-08 18:32:15 +01:00
|
|
|
[tool.hatchling]
|
|
|
|
|
name = "pycord-rest-bot"
|
|
|
|
|
|
2025-03-08 20:23:23 +01:00
|
|
|
[tool.hatch.build]
|
2025-03-08 21:29:21 +01:00
|
|
|
include = [
|
|
|
|
|
"src/pycord_rest/",
|
|
|
|
|
]
|
2025-03-08 20:23:23 +01:00
|
|
|
exclude = [
|
|
|
|
|
".copywrite.hcl",
|
|
|
|
|
".github",
|
|
|
|
|
".python-version",
|
|
|
|
|
"uv.lock",
|
|
|
|
|
]
|
2025-03-08 21:29:21 +01:00
|
|
|
|
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
|
|
|
packages = ["src/pycord_rest"]
|
2025-03-08 18:32:15 +01:00
|
|
|
|
2025-03-08 18:16:37 +01:00
|
|
|
[tool.pyright]
|
|
|
|
|
pythonVersion = "3.12"
|
2025-03-08 20:42:14 +01:00
|
|
|
typeCheckingMode = "all"
|
|
|
|
|
reportUnusedCallResult = false
|
2025-03-08 18:16:37 +01:00
|
|
|
reportAny = false
|
2025-03-08 20:42:14 +01:00
|
|
|
executionEnvironments = [
|
|
|
|
|
{ root = "src/pycord_rest/_version.py", reportDeprecated = false },
|
2025-08-31 12:43:37 +02:00
|
|
|
{ root = "examples", reportExplicitAny = false, reportUnknownMemberType = false, reportUnusedParameter = false, reportImplicitOverride = false, reportAttributeAccessIssue = false, reportUnknownVariableType = false },
|
2025-03-08 20:42:14 +01:00
|
|
|
]
|
2025-03-08 18:16:37 +01:00
|
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
|
target-version = "py312"
|
|
|
|
|
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"
|
2025-03-08 20:34:50 +01:00
|
|
|
exclude = [
|
|
|
|
|
"src/pycord_rest/_version.py"
|
|
|
|
|
]
|
2025-03-08 18:16:37 +01:00
|
|
|
|
|
|
|
|
[tool.ruff.lint]
|
|
|
|
|
select = ["ALL"]
|
2025-03-09 16:25:17 +01:00
|
|
|
per-file-ignores = { "examples/**/*" = ["INP001", "ARG002", "T201"] }
|
2025-03-08 18:16:37 +01:00
|
|
|
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",
|
2025-03-09 18:25:20 +01:00
|
|
|
"C901",
|
|
|
|
|
"ISC003" # conflicts with basedpyright reportImplicitStringConcatenation
|
2025-03-08 18:32:15 +01:00
|
|
|
]
|