-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
88 lines (74 loc) · 1.61 KB
/
pyproject.toml
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
[tool.poetry]
name = "raycraft"
version = "0.1.0"
description = "FastAPI + Ray = <3"
packages = [{ include = "raycraft", from = "src" }]
authors = []
readme = "README.md"
include = ["README.md", "LICENSE.txt", "src/raycraft/py.typed"]
exclude = [
"*.so",
"*.pyc",
"*~",
"#*",
".git*",
".coverage*",
"DS_Store",
"__pycache__",
]
[tool.poetry.dependencies]
python = ">=3.9, <3.11"
ray = { extras = ["serve"], version = "^2.8.0" }
fastapi = "^0.99.0"
varname = "^0.12.0"
[tool.poetry.dev-dependencies]
# type hints
mypy = "1.3.0"
# formatting
black = "23.3.0"
# linting
ruff = "0.0.269"
# import sorting
isort = "5.12.0"
# testing
pytest = "7.3.1"
pytest-sugar = "0.9.7"
# on-demand environments
nox = "2023.4.22"
nox-poetry = "1.0.2"
[tool.poetry.scripts]
raycraft = "raycraft.cli:cli"
[tool.poetry.group.demo.dependencies]
transformers = "^4.35.0"
torch = "^2.1.0"
[tool.poetry.group.dev.dependencies]
ipython = "8.11"
[tool.mypy]
strict = true
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
warn_unreachable = true
[[tool.mypy.overrides]]
module = "tests.*"
warn_no_return = false
allow_untyped_defs = true
allow_untyped_decorators = true
[[tool.mypy.overrides]]
module = "varname"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "yaml"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "transformers"
ignore_missing_imports = true
[tool.isort]
profile = "black"
combine_as_imports = true
known_first_party = ["raycraft"]
order_by_type = false
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"