WIP autoscaler agent
This commit is contained in:
parent
c610a3e284
commit
28059dcedf
34 changed files with 2409 additions and 35 deletions
46
agent/pyproject.toml
Normal file
46
agent/pyproject.toml
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
[build-system]
|
||||
requires = ["setuptools>=68", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "nix-builder-autoscaler"
|
||||
version = "0.1.0"
|
||||
description = "Autoscaler daemon for Nix remote builders on EC2 Spot instances"
|
||||
requires-python = ">=3.12"
|
||||
dependencies = [
|
||||
"boto3",
|
||||
"fastapi",
|
||||
"uvicorn[standard]",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
autoscalerctl = "nix_builder_autoscaler.cli:main"
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"ruff",
|
||||
"pyright",
|
||||
"pytest",
|
||||
"httpx",
|
||||
"botocore",
|
||||
]
|
||||
|
||||
[tool.ruff]
|
||||
target-version = "py312"
|
||||
line-length = 100
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["E", "F", "I", "UP", "B", "SIM", "ANN"]
|
||||
ignore = []
|
||||
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
"*/tests/*" = ["ANN"]
|
||||
|
||||
[tool.pyright]
|
||||
pythonVersion = "3.12"
|
||||
typeCheckingMode = "standard"
|
||||
include = ["nix_builder_autoscaler"]
|
||||
exclude = ["**/tests"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["nix_builder_autoscaler/tests"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue