-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
106 lines (91 loc) · 2.18 KB
/
pyproject.toml
File metadata and controls
106 lines (91 loc) · 2.18 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
[project]
name = "model_platform"
version = "0.1.0"
description = ""
authors = [{ name = "Octo Technology MLOps tribe" }]
requires-python = ">=3.11"
dependencies = [
"pydantic-settings>=2.7.0",
"loguru>=0.7.3",
"ipykernel>=7.1.0",
"pandera[notebooks]>=0.29.0",
]
[project.scripts]
mp = "cli.main:app"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["backend", "cli"]
[dependency-groups]
backend = [
"mlflow~=2.19.0",
"uvicorn>=0.34.0",
"fastapi>=0.115.6",
"psycopg2-binary>=2.9.10",
"boto3>=1.36.2",
"kubernetes>=32.0.0",
"passlib>=1.7.4",
"python-jose>=3.4.0",
"bcrypt>=4.0.0,<4.1.0",
"python-multipart>=0.0.20",
"huggingface-hub>=0.30.2",
"transformers>=4.51.3",
"anthropic>=0.40.0",
]
cli = [
"typer>=0.17.3",
"httpx>=0.28.1",
]
dev = [
"ruff>=0.1.4",
"pytest-cov>=4.1.0",
"pre-commit>=3.5.0",
"black>=24.3.0",
"pytest>=8.3.4",
"pytest-asyncio>=0.25.3",
"pytest-mock>=3.14.0",
"pytest-playwright",
]
notebooks = [
"pyomo>=6.9.0",
"scikit-learn>=1.6.1",
"ortools>=9.12.4544",
"torchinfo>=1.8.0",
"torchmetrics>=1.6.3",
"pvlib>=0.11.2",
"transformers>=4.49.0",
"notebook>=7.3.3",
"ipykernel>=7.1.0",
]
[tool.ruff]
# Enable the pycodestyle (`E`) and Pyflakes (`F`) rules by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E", "F", "I", "N", ]
ignore = ["D205"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = ["E712"]
include = ["*.py"]
exclude = ["**/Applications/**", "**/tests/**", "**/docs/**", "**/__init__.py"]
per-file-ignores = { }
# Same as Black.
line-length = 120
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
target-version = "py311"
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
line_length = 120
extend_skip_glob = [
"cmake/*",
"orttraining/*",
"onnxruntime/core/flatbuffers/*",
]
[tool.pydocstyle]
convention = "google"
[tool.pytest.ini_options]
pythonpath = "src"