forked from ml-energy/zeus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
87 lines (78 loc) · 2.36 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
[build-system]
requires = ["setuptools>=61.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "zeus-ml"
description = "A framework for deep learning energy measurement and optimization."
readme = "README.md"
authors = [
{name = "Jae-Won Chung", email = "[email protected]"},
]
license = {text = "Apache 2.0"}
classifiers = [
"Environment :: GPU :: NVIDIA CUDA",
"License :: OSI Approved :: Apache Software License",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
keywords = ["deep-learning", "power", "energy", "sustainability", "mlsys"]
requires-python = ">=3.8"
dependencies = [
"numpy",
"pandas",
"scikit-learn",
"nvidia-ml-py",
"pydantic<2",
"rich",
"tyro",
"fastapi[all]==0.87.0",
"httpx",
"aiofiles==22.1.0",
"lowtime",
]
dynamic = ["version"]
[project.urls]
Repository = "https://github.com/ml-energy/zeus"
Homepage = "https://ml.energy/zeus"
Documentation = "https://ml.energy/zeus"
[project.optional-dependencies]
lint = ["ruff", "black==22.6.0"]
test = ["pytest==7.3.2", "pytest-mock==3.10.0", "pytest-xdist==3.3.1"]
dev = ["ruff", "black==22.6.0", "pytest==7.3.2", "pytest-mock==3.10.0", "pytest-xdist==3.3.1"]
[tool.setuptools.packages.find]
where = ["."]
[tool.setuptools.dynamic]
version = {attr = "zeus.__version__"}
[tool.ruff]
select = [
"E", # pycodestyle error
"F", # pyflakes
"D", # pydocstyle
"PL", # pylint
"N", # pep8-naming
"B", # flake8-bugbear (detects likely bugs)
"G", # flake8-logging-format (complains about logging)
"SIM", # flake8-simplify (suggests code simplifications)
]
ignore = [
"PLW0603", # Global statement
"B019", # Usage of functools.lru_cache
"PLR0913", # Too many function arguments
"PLR0912", # Too many branches
"B905", # zip strict argument
"PLR0915", # Too many statements
"PLR2004", # Magic values
"SIM115", # Context manager for opening files
"E501", # Line too long
]
line-length = 120
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.per-file-ignores]
"**/__init__.py" = ["F401", "F403"]
"zeus/optimizer/perseus/common.py" = ["N805"]
"zeus/optimizer/perseus/server/router.py" = ["B008"]
[tool.pytest.ini_options]
addopts = "--numprocesses auto"