-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpyproject.toml
More file actions
189 lines (170 loc) · 4.59 KB
/
pyproject.toml
File metadata and controls
189 lines (170 loc) · 4.59 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
[build-system]
requires = ["flit_core >=3.11,<4"]
build-backend = "flit_core.buildapi"
[project]
authors = [{ name = "aru", email = "me@arielle.codes" }]
license = "MIT"
license-files = ["LICENSE", "LICENSE_THIRD_PARTY"]
requires-python = ">=3.10"
name = "monty"
version = "0.0.1"
description = "Helpful bot for python, github, and discord things."
dependencies = [
"aiohttp-client-cache>=0.14.1",
"aiohttp~=3.13.0",
"alembic<2.0.0,>=1.15.2",
"arrow~=1.4.0",
"asyncpg~=0.31.0",
"attrs<25.0.0,>=24.2.0",
"base65536~=0.1.1",
"beautifulsoup4<5.0.0,>=4.13.4",
"cachingutils @ git+https://github.com/onerandomusername/cachingutils.git@vcokltfre/feat/v2",
"colorama~=0.4.5; sys_platform == \"win32\"",
"disnake[speed] @ git+https://github.com/DisnakeDev/disnake.git@master",
"ghretos @ git+https://github.com/onerandomusername/ghretos@main",
"githubkit>=0.13.5",
"httpx>=0.28.1",
"httpx-aiohttp>=0.1.9",
"lxml>=5.4.0,<7.0.0",
"markdownify~=1.1.0",
"mistune<3.0.0,>=2.0.4",
"msgpack<2.0.0,>=1.1.0",
"orjson<4.0.0,>=3.10.18",
"Pillow<12.0,>=11.2",
"psutil<6.0.0,>=5.9.8",
"pydantic-settings>=2.11.0",
"pydantic>=2.12.2",
"python-dateutil<3.0.0,>=2.9.0",
"rapidfuzz<4.0.0,>=3.13.0",
"readme-renderer[md] (>=44.0,<45.0)",
"redis[hiredis]<6.0.0,>=5.2.0",
"rich>=14.1.0,<15.0.0",
"sentry-sdk<3.0.0,>=2.28.0",
"SQLAlchemy[asyncio]~=2.0.41",
"statsd<4.0.0,>=3.3.0",
"typing-extensions>=4.15.0",
# markers from https://github.com/MagicStack/uvloop/blob/74f4c96d3fc5281b1820491d2568de771ea7851b/setup.py#L7-L8
"uvloop>=0.22.1 ; sys_platform != 'cli' and sys_platform != 'cygwin' and sys_platform != 'win32'",
"yarl<2.0.0,>=1.17.2",
]
[dependency-groups]
dev = [
{ include-group = "devlibs" },
{ include-group = "docs" },
{ include-group = "mdformat" },
{ include-group = "tools" },
{ include-group = "typing" },
]
devlibs = [
"fakeredis<3.0.0,>=2.29.0",
"watchfiles<2.0.0,>=1.0.5",
"python-dotenv<2.0.0,>=1.1.0",
"wand>=0.6.13",
"octicons-pack>=19.19.0",
]
docs = [
"mkdocs<2.0.0,>=1.6.1",
"mkdocs-material[imaging]<10.0.0,>=9.6.20",
"mkdocs-git-revision-date-localized-plugin<2.0.0,>=1.4.7",
"markdown-gfm-admonition<1.0.0,>=0.1.1",
]
mdformat = [
"mdformat<1.0.0,>=0.7.22",
"mdformat-ruff<1.0.0,>=0.1.3",
"mdformat-gfm<1.0.0,>=0.4.1",
"mdformat-gfm-alerts<3.0.0,>=2.0.0",
"mdformat-mkdocs<5.0.0,>=4.4.1",
"mdformat-pyproject<1.0.0,>=0.0.2",
"mdformat-simple-breaks<1.0.0,>=0.0.1",
"mdformat-tables<2.0.0,>=1.0.0",
"mdformat-frontmatter<3.0.0,>=2.0.8",
]
nox = ["nox>=2025.5.1"]
ruff = ["ruff==0.14.5"]
tools = [
"poethepoet>=0.37.0",
"prek>=0.2.1,<0.3",
{ include-group = "ruff" },
{ include-group = "nox" },
]
typing = ["basedpyright>=1.31.6", "msgpack-types<1.0.0,>=0.5.0"]
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
# flake8-commas
"COM",
# Missing Docstrings
"D100",
"D101",
"D104",
"D105",
"D107",
# Docstring Whitespace
"D212",
# Docstring Content
"D401",
"D404",
"D406",
"D407",
"D410",
"D411",
"D416",
# Type Annotations
"ANN002",
"ANN003",
"ANN204",
"ANN206",
"ANN401",
# try-except-pass
"S110",
# temporarily disabled
"C901", # mccabe
"G004", # Logging statement uses f-string
"S101", # Use of `assert` detected
"S311", # pseduo-random generators, random is used everywhere for random choices.
"ARG",
"BLE",
"ERA",
"FBT",
"FIX",
"FURB",
"PGH",
"PLC",
"PLR",
"PLW",
"RET505",
"RET506",
"RUF012",
"SIM105",
"SIM108",
"SLF",
"TD",
"TRY",
]
[tool.ruff.lint.per-file-ignores]
"monty/alembic/*" = ["D"]
"_global_source_snekcode.py" = ["T201"]
[tool.ruff.lint.flake8-builtins]
ignorelist = ["id"]
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["monty"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.mccabe]
max-complexity = 20
[tool.poe.tasks]
lint = { cmd = "prek run --all-files", help = "Lint the source code" }
prek = { cmd = "prek install", help = "Install the git pre-commit hooks" }
pyright = { cmd = "dotenv -f task.env run -- pyright", help = "Run pyright" }
sync = { cmd = "uv sync --all-groups --all-extras", help = "Sync all groups and extras to a local environment" }
[tool.basedpyright]
typeCheckingMode = "standard"
include = ["monty", "*.py"]
# temporarily disabled
reportUnnecessaryTypeIgnoreComment = false
[tool.mdformat]
wrap = 80