forked from modmail-dev/Modmail
-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
127 lines (117 loc) · 2.76 KB
/
pyproject.toml
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
[project]
requires-python = "<3.12,>=3.9"
name = "discord-modmail"
version = "4.3.3"
description = "A Modmail fork with a focus on improvements and bug fixes"
authors = [
{name = "Raiden Sakura", email = "raiden@project-mei.xyz"},
{name = "kyb3r", email = "noemail@example.com"},
{name = "4jr", email = "noemail@example.com"},
{name = "Taki", email = "noemail@example.com"},
]
dependencies = [
"aiohttp[speedups]==3.9.1",
"colorama~=0.4.5",
"emoji~=1.7.0",
"isodate~=0.6.0",
"motor~=3.1.2",
"natural~=0.2.0",
"parsedatetime~=2.6",
"pymongo[srv]",
"python-dateutil~=2.8.1",
"python-dotenv~=1.0.0",
"uvloop~=0.17.0; sys_platform != \"win32\"",
"requests~=2.31.0",
"attrs~=23.1.0",
"strenum<1.0.0,>=0.4.15",
"discord-py[speed]==2.4.0",
"packaging<24.0,>=23.2",
"typing-extensions>=4.12.2",
]
readme = "README.md"
license = {text = "AGPL-3.0"}
[tool.poetry]
name = "discord-modmail"
version = "4.3.3"
description = "A Modmail fork with a focus on improvements and bug fixes"
authors = [
"Raiden Sakura <raiden@project-mei.xyz>",
"kyb3r <noemail@example.com>",
"4jr <noemail@example.com>",
"Taki <noemail@example.com>"
]
license = "AGPL-3.0"
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.9, <3.12"
aiohttp = {version = "3.9.1", extras = ["speedups"]}
colorama = "~=0.4.5"
emoji = "~=1.7.0"
isodate = "~=0.6.0"
motor = "~=3.1.2"
natural = "~=0.2.0"
parsedatetime = "~=2.6"
pymongo = {extras = ["srv"], version = "*"}
python-dateutil = "~=2.8.1"
python-dotenv = "~=1.0.0"
uvloop = {version = "~=0.17.0", markers = "sys_platform != 'win32'"}
requests = "~=2.31.0"
attrs = "~=23.1.0"
strenum = "^0.4.15"
"discord.py" = {version = "2.4.0", extras = ["speed"]}
packaging = "^23.2"
typing-extensions = "^4.12.2"
[tool.poetry.group.dev.dependencies]
black = "^23.12.0"
ruff = "^0.1.9"
tomli = "^2.0.1"
pre-commit = "^3.6.0"
[tool.pdm]
distribution = true
[tool.pdm.dev-dependencies]
dev = [
"black<24.0.0,>=23.12.0",
"ruff<1.0.0,>=0.1.9",
"tomli<3.0.0,>=2.0.1",
"pre-commit<4.0.0,>=3.6.0",
]
[tool.pdm.build]
includes = []
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.black]
line-length = "110"
target-version = ['py311']
include = '\.pyi?$'
extend-exclude = '''
(
/(
\.eggs
| \.git
| \.venv
| venv
| venv2
| _build
| build
| dist
| plugins
| temp
)/
)
'''
[tool.ruff]
target-version = "py311"
line-length = 110
select = ["C90", "E", "F", "I001", "PGH004", "RUF100"]
ignore = ["F405", "E741", "C901", "F403", "E501"]
fix = true
fixable = ["I001"]
isort.combine-as-imports = true
force-exclude = true
exclude = [
"@local",
]
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 25