-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
108 lines (87 loc) · 2.61 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
[tool.poetry]
name = "inventory"
version = "0.1.0"
description = ""
authors = []
readme = "readme.md"
packages = [{include = "inventory"}]
[tool.poetry.dependencies]
python = "^3.9"
python-telegram-bot = {extras = ["job-queue"], version = "^20.2"}
peewee = "^3.16.0"
pydantic = "^1.10.7"
dependency-injector = "^4.41.0"
loguru = "^0.6.0"
loguru-logging-intercept = "^0.1.1"
aenum = "^3.1.12"
psycopg2-binary = "^2.9.5"
nest-asyncio = "^1.5.6"
notion-client = "^2.0.0"
s3fs = "^2023.3.0"
s3-parse-url = "^0.3.3"
[tool.poetry.group.dev.dependencies]
peewee-migrations = "^0.3.32"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
profile = "black"
[tool.flakeheaven]
exclude = ["migrations/*"]
max_line_length = 88
[tool.poe.tasks.user-add]
envfile = ".env"
script = "cli:user_add"
help = "Add a new user to the database, granting them bot access"
[[tool.poe.tasks.user-add.args]]
name = "id"
type = "integer"
help = "Telegram user ID"
options = ["--id", "-i"]
required = true
[[tool.poe.tasks.user-add.args]]
name = "full_name"
help = "User's romanized surname with initials passed as string, e.g. \"Simagin D. A.\""
type = "string"
options = ["--full-name", "-n"]
required = true
[[tool.poe.tasks.user-add.args]]
name = "is_admin"
help = "Determines if the user has admin level access [default:false]"
type = "boolean"
default = false
options = ["--is-admin", "-a"]
[tool.poe.tasks.user-del]
envfile = ".env"
script = "cli:user_del"
help = "Delete a user by id, revoking their bot access rights"
[[tool.poe.tasks.user-del.args]]
name = "id"
help = "Telegram ID of the user to be deleted"
type = "integer"
options = ["--id", "-i"]
required = true
[tool.poe.tasks.user-edit]
envfile = ".env"
script ="cli:user_edit"
help = "Edit a user in the database"
[[tool.poe.tasks.user-edit.args]]
name = "id"
help = "Telegram id of the edited user without the @"
type = "integer"
options = ["--id", "-i"]
required = true
[[tool.poe.tasks.user-edit.args]]
name = "new_full_name"
help = "User's romanized surname with initials passed as string, e.g. \"Simagin D. A.\""
type = "string"
options = ["--full-name", "-n"]
[[tool.poe.tasks.user-edit.args]]
name = "is_admin"
help = "Determines if the user has admin level access, omit to revoke admin access"
options = ["--is-admin", "-a"]
type = "string"
[tool.poe.tasks.user-list]
envfile = ".env"
script = "cli:user_list"
help = "List all authorized users from database [default: username & permission level]"