-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
111 lines (94 loc) · 2.23 KB
/
pyproject.toml
File metadata and controls
111 lines (94 loc) · 2.23 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
[metadata]
license_file = "LICENSE"
description-file = "README.md"
[project]
name = "fastagents"
version = "3.0.0"
description = ""
authors = [
{name = "Shohin Abd", email = "shohin@example.com"}
]
readme = "README.md"
requires-python = ">=3.11.6"
dependencies = [
"uvicorn[standard] (>=0.34.0,<0.35.0)",
"colorama (>=0.4.6,<0.5.0)",
"load-dotenv (>=0.1.0,<0.2.0)",
"pydantic (>=2.10.6,<3.0.0)",
"openai-agents (>=0.0.7,<0.1.0)",
"openai (>=1.70.0,<2.0.0)",
]
[tool.ruff]
fix = true
line-length = 120
target-version = 'py39'
# Exclude a variety of commonly ignored directories.
exclude = [
".eggs",
".git",
".mypy_cache",
".ruff_cache",
"__pypackages__",
"_build",
"build",
"dist",
"docs",
"math_utils\\.py$",
"setup_*.py",
"env",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"C90", # mccabe
"N", # pep8-naming
"I", # isort
"F", # pyflakes
"ASYNC", # flake8-async
"Q", # flake8-quotes
"SIM", # flake8-simplify
"RUF022", # Sort __all__
]
ignore = [
"E501", "F403", "C901",
"E402", "E721", "ASYNC109",
"D100", "D101", "D102", "D103", "D104",
"C901", # too complex
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.isort]
case-sensitive = true
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.mypy]
# Mypy-specific settings, not for ruff
strict = true
ignore_missing_imports = true
install_types = true
non_interactive = true
plugins = ["pydantic.mypy"]
# remove after all files in the repo are fixed
follow_imports = "silent"
# From https://blog.wolt.com/engineering/2021/09/30/professional-grade-mypy-configuration/
disallow_untyped_defs = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
show_error_codes = true
warn_unused_ignores = false
disallow_incomplete_defs = true
disallow_untyped_decorators = true
disallow_any_unimported = true
[tool.poetry.dependencies]
fastapi = "^0.115.7"
uvicorn = "^0.34.0"
colorama = "^0.4.6"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.group.dev.dependencies]
ruff = "^0.9.3"