-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (75 loc) · 1.88 KB
/
pyproject.toml
File metadata and controls
90 lines (75 loc) · 1.88 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
[build-system]
requires = ["setuptools>=61", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "cloudpilot"
version = "1.0.0"
description = "CloudPilot - AI-Driven Infrastructure Optimization"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.10"
authors = [{ name = "Mateo Petel" }]
dependencies = [
"boto3>=1.34",
"kubernetes>=28.0",
"scikit-learn>=1.3",
"numpy>=1.24",
"PyYAML>=6.0",
"prometheus-api-client>=0.5",
]
[project.optional-dependencies]
ml = ["torch>=2.0"]
dev = [
"pytest>=8.0",
"pytest-cov>=4.1",
"ruff>=0.3",
"mypy>=1.8",
"pip-audit>=2.6",
"bandit[toml]>=1.7",
"types-PyYAML>=6.0",
]
[project.scripts]
cloudpilot = "cli:main"
[tool.setuptools.packages.find]
where = ["."]
include = ["cloudpilot*"]
[tool.setuptools]
py-modules = ["cli"]
[tool.setuptools.package-data]
cloudpilot = ["py.typed"]
[tool.ruff]
target-version = "py310"
line-length = 88
src = ["cloudpilot", "cli.py", "tests", "locustfile.py"]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]
[tool.ruff.lint.per-file-ignores]
"locustfile.py" = ["E402"]
[tool.mypy]
python_version = "3.10"
packages = ["cloudpilot"]
warn_unused_ignores = true
disallow_untyped_defs = false
ignore_missing_imports = true
exclude = ["build/", "locustfile.py"]
[[tool.mypy.overrides]]
module = "cli"
ignore_errors = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-m 'not integration'"
markers = [
"integration: tests that may require real cluster or credentials (opt-in)",
"requires_torch: tests that need the optional torch dependency",
]
[tool.coverage.run]
source = ["cloudpilot", "cli"]
branch = true
omit = ["*/tests/*"]
[tool.coverage.report]
fail_under = 45
show_missing = true
exclude_lines = ["pragma: no cover", "if __name__ == .__main__.:"]
[tool.bandit]
exclude_dirs = ["tests", "build", ".venv"]
skips = ["B101"]