forked from gpu-mode/kernelbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
63 lines (56 loc) · 1.38 KB
/
pyproject.toml
File metadata and controls
63 lines (56 loc) · 1.38 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "discord-cluster-manager"
version = "0.1.0"
description = "Discord bot for managing compute clusters and running kernel benchmarks"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"PyGithub",
"aiohttp",
"discord.py",
"audioop-lts; python_version >= '3.13'",
"python-dotenv",
"requests",
"modal",
"psycopg2-binary",
"yoyo-migrations",
"better_profanity",
"PyYAML",
"fastapi[all]",
"uvicorn",
"jinja2",
"huggingface-hub>=0.20",
"pyarrow>=14.0",
]
[project.optional-dependencies]
dev = [
"ruff",
"pre-commit",
"pytest",
"pytest-coverage",
"pytest-asyncio"
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.coverage.run]
omit = ["src/libkernelbot/run_eval.py", "src/libkernelbot/launchers/*.py"]
relative_files = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
# For now, don't require coverage of db errors
"except psycopg2.Error"
]
[tool.pytest.ini_options]
testpaths = ["scripts", "tests"]
python_files = ["test_*.py", "*_test.py", "ci_test_*.py"]
markers = [
"integration: integration tests that need to interact externally, e.g., with modal/github actions/etc"
]
[tool.ruff]
line-length = 120
target-version = "py310"