-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
79 lines (70 loc) · 2.01 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
[build-system]
requires = ["maturin>=1.7,<2.0"]
build-backend = "maturin"
[project]
name = "lowtime"
description = "A library for solving the time-cost tradeoff problem."
version="0.2.0" # keep synced with __init__.py, Cargo.toml
readme = "README.md"
authors = [
{name = "Jae-Won Chung", email = "[email protected]"},
{name = "Yile Gu", email = "[email protected]"},
{name = "Oh Jun Kweon", email = "[email protected]"},
]
license = {text = "Apache 2.0"}
classifiers = [
"Typing :: Typed",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Rust",
]
keywords = ["optimization", "tradeoff", "DAG"]
requires-python = ">=3.8"
dependencies = [
"scikit-learn",
"matplotlib",
"attrs",
"numpy",
"networkx",
]
[tool.maturin]
module-name = "lowtime._lowtime_rs"
features = ["pyo3/extension-module"]
[project.urls]
Repository = "https://github.com/ml-energy/lowtime"
[project.optional-dependencies]
lint = ["ruff", "black"]
test = ["pytest"]
dev = ["ruff", "black", "pytest", "tyro", "pandas", "pyright"]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
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
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["F401", "F403"]
[tool.pyright]
stubPath = "./stubs/stubs"