-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
60 lines (52 loc) · 1.16 KB
/
pyproject.toml
File metadata and controls
60 lines (52 loc) · 1.16 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
[project]
name = "github-project-discord-bot"
version = "1.0.0"
description = "Create post on forum channel for github project cards"
requires-python = ">=3.14"
dependencies = [
"aiohttp>=3.13.2",
"aiorwlock>=1.5.0",
"dotenv>=0.9.9",
"fastapi>=0.121.2",
"hikari>=2.5.0",
"setuptools>=80.9.0",
"uvicorn>=0.38.0",
]
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["src"]
[dependency-groups]
prod = [
"gunicorn>=23.0.0",
"uvicorn[standard]>=0.38.0"
]
dev = [
"pytest>=9.0.1",
"pytest-asyncio>=1.3.0",
"ruff>=0.14.5",
"pre-commit>=4.4.0",
"httpx>=0.28.1" # required for testing FastAPI endpoints
]
[tool.uv]
default-groups = ["dev"]
[tool.pytest.ini_options]
testpaths = ["src/tests"]
asyncio_mode = "auto"
[project.scripts]
start-app = "src.main:main"
[tool.ruff]
line-length = 120
preview = true
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade (modern Python syntax)
"N", # PEP8 Naming
]