-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
107 lines (89 loc) · 3.55 KB
/
pyproject.toml
File metadata and controls
107 lines (89 loc) · 3.55 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "discord-py-paginators"
description = "Extension for discord.py that provides various paginators."
authors = [{ name = "Soheab_" }]
requires-python = ">=3.9"
license = { file = "LICENSE" }
dependencies = ["discord.py>=2.2.0, <3.0.0"]
dynamic = ["version", "readme"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Natural Language :: English",
"Typing :: Typed",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
[project.urls]
Documentation = "https://discord-py-paginators.readthedocs.io/"
Github = "https://github.com/Soheab/discord-py-paginators"
Discord = "https://discord.gg/yCzcfju"
[project.optional-dependencies]
docs = [
"sphinx>=8.2.3,<9.0.0",
"furo>=2025.9.25,<2026.0.0", # theme // https://pradyunsg.me/furo/customisation/announcement/
"sphinx-autodoc-typehints>=3.2.0,<4.0.0", # https://github.com/tox-dev/sphinx-autodoc-typehints
"sphinx-toolbox>=4.0,<5.0", # https://sphinx-toolbox.readthedocs.io/en/latest/extensions/index.html
]
dev = ["black", "ruff", "typing_extensions", "pyright"]
[tool.setuptools]
packages = ["discord", "discord.ext", "discord.ext.paginators"]
[tool.setuptools.dynamic]
version = { attr = "discord.ext.paginators.__version__" }
readme = { file = ["README.rst"], content-type = "text/x-rst" }
[tool.pyright]
include = ["discord.ext.paginators"]
exclude = ["**/__pycache__", "_build", "build", "dist", "docs", "**/legacy"]
reportUnnecessaryTypeIgnoreComment = "warning"
reportUnusedImport = "error"
pythonVersion = "3.9"
typeCheckingMode = "strict"
reportDuplicateImport = "warning"
reportDeprecated = "warning"
reportMissingTypeStubs = "none"
reportPrivateUsage = "none"
reportUnnecessaryIsInstance = "none"
[tool.coverage.report]
exclude_lines = ["pragma: no cover", "@overload"]
[tool.black]
line-length = 125
# https://beta.ruff.rs/docs/settings/
[tool.ruff]
fix = true # default: false
line-length = 125 # default: 88
include = ["discord", "discord.ext", "discord.ext.modal_paginator"]
exclude = ["**/__pycache__", "_build", "build", "dist", "docs", ]
target-version = "py39" # default: "py38"
[tool.ruff.flake8-annotations]
allow-star-arg-any = true # default: false
ignore-fully-untyped = true # default: false
suppress-dummy-args = true # default: false
[tool.ruff.flake8-bandit]
check-typed-exception = true # default: false
[tool.ruff.flake8-comprehensions]
allow-dict-calls-with-keyword-arguments = true # default: false
[tool.ruff.flake8-type-checking]
strict = true
[tool.ruff.flake8-unused-arguments]
ignore-variadic-names = true
[tool.ruff.isort]
case-sensitive = true # default: false
combine-as-imports = true # default: false
force-sort-within-sections = true # default: false
force-to-top = ["future", "typing"] # default: []
force-wrap-aliases = true # default: false
required-imports = ["from __future__ import annotations"] # default: []
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"] # default
[tool.ruff.pydocstyle]
convention = "numpy" # default: none
ignore-decorators = ["typing.overload"] # default: []
[tool.ruff.pylint]
max-args = 20 # default: 5 # lets not limit ourselves :)
[tool.ruff.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true # default: false