-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
66 lines (59 loc) · 1.97 KB
/
pyproject.toml
File metadata and controls
66 lines (59 loc) · 1.97 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
[project]
name = "backend"
version = "0.1.0"
description = "Connect4 Game"
readme = "README.md"
dependencies = [
"uvicorn>=0.34.2",
"fastapi>=0.115.12",
"pydantic>=2.11.4",
"pydantic-ai-slim[openai,anthropic,groq,google]>=1.73.0",
"logfire[asyncpg,fastapi,httpx]>=4.30.0",
"asyncpg>=0.30.0",
"pydantic-evals>=1.73.0",
]
requires-python = ">=3.12"
authors = [
{ name = "Samuel Colvin", email = "samuel@pydantic.dev" },
{ name = "David Montague", email = "david@pydantic.dev" },
]
license = "MIT"
[dependency-groups]
dev = ["ruff>=0.8.3", "pyright>=1.1.397", "asyncpg-stubs>=0.30.1"]
[tool.pyright]
typeCheckingMode = "strict"
reportUnnecessaryTypeIgnoreComment = true
reportMissingTypeStubs = false
include = ["backend"]
venvPath = "."
venv = ".venv"
# https://beta.ruff.rs/docs/configuration/
[tool.ruff]
line-length = 120
[tool.ruff.lint]
extend-select = [
"Q", # https://docs.astral.sh/ruff/rules/#flake8-quotes-q
"RUF100", # https://docs.astral.sh/ruff/rules/unused-noqa/
"C90", # https://docs.astral.sh/ruff/rules/#mccabe-c90
"UP", # https://docs.astral.sh/ruff/rules/#pyupgrade-up
"I", # https://docs.astral.sh/ruff/rules/#isort-i
"DTZ005", # https://docs.astral.sh/ruff/rules/call-datetime-now-without-tzinfo/
"FA", # https://docs.astral.sh/ruff/rules/#flake8-future-annotations-fa
]
flake8-quotes = { inline-quotes = "single", multiline-quotes = "double" }
isort = { combine-as-imports = true, known-first-party = ["backend"] }
mccabe = { max-complexity = 14 }
ignore = [
"D107", # ignore missing docstring in __init__ methods
"D100", # ignore missing docstring in module
"D104", # ignore missing docstring in public package
"D105", # ignore missing docstring in magic methods
"C901", # ignore too complex functions, doesn't seem to be worth it
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
docstring-code-format = true
quote-style = "single"
[tool.uv]
default-groups = ["dev"]