-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
71 lines (64 loc) · 1.51 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
[project]
name = "somnus"
version = "1.1.5"
description = "Discord bot to remotely control and manage multiple Minecraft servers"
authors = [
{ name = "2mal3", email = "56305732+2mal3@users.noreply.github.com" },
{ name = "programmer-44", email = "github@keinbock.mozmail.com" },
]
dependencies = [
"discord-py==2.*",
"python-dotenv==1.*",
"wakeonlan==3.*",
"ping3==4.*",
"pexpect==4.*",
"mcstatus==11.*",
"pydantic==2.*",
"aiofiles==24.*",
"yet-another-i18n==0.*",
]
readme = "README.md"
requires-python = ">= 3.8"
[tool.ruff]
target-version = "py311"
line-length = 120
[tool.ruff.lint]
# Rules are explained here: https://docs.astral.sh/ruff/rules
select = ["ALL"]
ignore = [
"FBT",
"D", # we are not a library
"PT",
"B",
"EM",
"TRY",
"PGH",
"COM812", # unnecessary complex
"TCH",
"I", # way to complex to automate this
"PTH",
"RET",
"BLE",
"ARG", # discord.py needs some arguments to be present even when we don't use them
"RUF005", # Bad readability / unnecessary complex
"DTZ",
"UP",
"PD", # we are not data scientists
]
[tool.rye.scripts]
dev = "python3 -m somnus.__main__"
prod = "python3 -m somnus.__main__"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.rye]
managed = true
virtual = true
dev-dependencies = [
"podman>=5.4.0.1",
"pytest>=8.3.4",
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["somnus"]