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
|
[tool.poetry]
name = "pydis_core"
version = "10.6.0"
description = "PyDis core provides core functionality and utility to the bots of the Python Discord community."
authors = ["Python Discord <[email protected]>"]
license = "MIT"
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
]
packages = [
{ include = "pydis_core" },
]
include = ["LICENSE"]
exclude = ["tests", "tests.*"]
readme = "README.md"
homepage = "https://pythondiscord.com/"
documentation = "https://bot-core.pythondiscord.com/"
repository = "https://github.com/python-discord/bot-core"
keywords = ["bot", "discord", "discord.py"]
[tool.poetry.dependencies]
python = "3.10.* || 3.11.*"
"discord.py" = "~=2.3.2"
async-rediscache = { version = "1.0.0rc2", extras = ["fakeredis"], optional = true }
pydantic = ">=1.7.4,<3.0.0"
statsd = "~=4.0"
aiodns = "~=3.1"
[tool.poetry.extras]
async-rediscache = ["async-rediscache"]
[tool.poetry.group.dev.dependencies]
taskipy = "1.12.2"
python-dotenv = "1.0.0"
[tool.poetry.group.test.dependencies]
pytest = "7.4.3"
pytest-cov = "4.1.0"
pytest-xdist = "3.5.0"
[tool.poetry.group.lint.dependencies]
ruff = "0.1.7"
pre-commit = "3.6.0"
typing-extensions = "4.9.0"
[tool.poetry.group.doc.dependencies]
Sphinx = "7.2.6"
GitPython = "3.1.40"
sphinx-autodoc-typehints = "1.25.2"
furo = "2023.9.10"
six = "1.16.0"
releases = "2.1.1"
sphinx-multiversion = "0.2.4"
docstring-parser = "0.15"
typing-extensions = "4.9.0"
tomli = "2.0.1"
[tool.taskipy.tasks]
lint = "pre-commit run --all-files"
precommit = "pre-commit install"
docs = "sphinx-build -nW -j auto -b html docs docs/build"
test = "pytest -n 8 --ff"
retest = "pytest -n 8 --lf"
[build-system]
requires = ["poetry-core>=1.2.0"]
build-backend = "poetry.core.masonry.api"
[tool.coverage.run]
branch = true
source_pkgs = ["pydis_core"]
source = ["tests"]
[tool.ruff]
target-version = "py310"
extend-exclude = [".cache"]
select = ["ANN", "B", "C4", "D", "DTZ", "E", "F", "I", "ISC", "INT", "N", "PGH", "PIE", "Q", "RET", "RSE", "RUF", "S", "SIM", "T20", "TID", "UP", "W"]
ignore = [
"ANN002", "ANN003", "ANN101", "ANN102", "ANN204", "ANN206", "ANN401",
"B904",
"C401", "C408",
"D100", "D104", "D105", "D107", "D203", "D212", "D214", "D215", "D301",
"D400", "D401", "D402", "D404", "D405", "D406", "D407", "D408", "D409", "D410", "D411", "D412", "D413", "D414", "D416", "D417",
"E731",
"RET504",
"RUF005",
"S311",
"SIM102", "SIM108",
]
line-length = 120
unsafe-fixes = true
preview = true
[tool.ruff.isort]
order-by-type = false
case-sensitive = true
combine-as-imports = true
known-first-party = ["dev", "pydis_core", "docs"]
[tool.ruff.per-file-ignores]
"tests/*" = ["ANN", "D"]
|