forked from raidensakura/modmail
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (102 loc) · 2.53 KB
/
Copy pathpyproject.toml
File metadata and controls
113 lines (102 loc) · 2.53 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
108
109
110
111
112
113
[tool.black]
line-length = "110"
target-version = ['py312']
include = '\.pyi?$'
extend-exclude = '''
(
/(
\.eggs
| \.git
| \.venv
| venv
| venv2
| _build
| build
| dist
| plugins
| temp
)/
)
'''
[tool.ruff]
target-version = "py312"
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
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 25
[tool.pdm]
plugins = ["sync-pre-commit-lock"]
[[tool.pdm.source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[tool.pdm.scripts]
# $ pdm requirements
requirements = "pdm export -o requirements.txt --without-hashes"
# $ pdm run bot
# OR
# $ pdm bot
bot = "bot.py"
gitDescribe = "git describe --tags --dirty"
# Manually sync with pdm sync-pre-commit
[project]
name = "Discord-OpenModmail"
version = "5.0.0-alpha.2"
description = "Fork² of a feature rich Discord Modmail bot written in Python."
license = 'AGPL-3.0-only'
authors = [{ name = "", email = "contact@khakers.dev" }]
dependencies = [
"aiohttp~=3.13.2",
"colorama~=0.4.6",
"emoji~=2.8.0",
"isodate~=0.6.0",
# TODO MOTOR is deprecated for PyMongo 4.9+
"motor>=3.7.0",
"natural~=0.2.0",
"parsedatetime~=2.6",
"python-dateutil~=2.8.1",
"python-dotenv~=1.0.0",
"uvloop~=0.21.0; sys_platform != \"win32\"",
"requests>=2.32.0",
"attrs~=23.1.0",
"strenum",
"discord-py~=2.6.3",
"setuptools>=69.0.3",
"packaging>=24.1",
"lottie>=0.7.2",
"boto3>=1.26.0", # S3 attachment archival support
]
requires-python = ">=3.12"
readme = "README.md"
[project.optional-dependencies]
supportutils = [
"utils @ git+https://github.com/Jerrie-Aries/modmail-plugins.git@master#subdirectory=utils",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool]
[tool.sync-pre-commit-lock]
# Run `pre-commit install` automatically if applicable
automaticall-install-hooks = true
# Should we sync your pre-commit versions with your lockfile (when running lock, add, update, remove, etc.)?
disable-sync-from-lock = true
# Packages to ignore when syncing from lock
ignore = []
# Name of the pre-commit config file to sync with
pre-commit-config-file = ".pre-commit-config.yaml"
[dependency-groups]
dev = [
"black",
"ruff",
"tomli",
"typing-extensions==4.6.3",
"pre-commit",
"boto3-stubs[s3]>=1.43.34",
]