cf7c29639c
Backend: config/db/security/logging core, SQLAlchemy models (Server, Credential, UpdateJob, UpdateLog, AuditLog, User), services (winrm, ssh, cau, audit, job_runner), REST API (auth, servers, updates, audit), Socket.io WebSocket layer. Frontend: Vue 3 + TS + Pinia + Tailwind, Views (Dashboard, Servers, Updates, Audit, Login), axios + socket.io-client, nginx prod config.
104 lines
2.3 KiB
TOML
104 lines
2.3 KiB
TOML
[project]
|
|
name = "insight-updater-backend"
|
|
version = "0.1.0"
|
|
description = "Insight Updater Backend - FastAPI application for server update orchestration"
|
|
readme = "README.md"
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"fastapi[standard]>=0.109.0",
|
|
"uvicorn[standard]>=0.27.0",
|
|
"sqlalchemy[asyncio]>=2.0.25",
|
|
"alembic>=1.13.0",
|
|
"aiosqlite>=0.19.0",
|
|
"asyncpg>=0.29.0",
|
|
"redis>=5.0.0",
|
|
"python-jose[cryptography]>=3.3.0",
|
|
"bcrypt>=4.1.0",
|
|
"cryptography>=42.0.0",
|
|
"pydantic[email]>=2.5.0",
|
|
"pydantic-settings>=2.1.0",
|
|
"pywinrm[kerberos]>=0.4.3",
|
|
"paramiko>=3.4.0",
|
|
"asyncssh>=2.14.0",
|
|
"python-socketio>=5.10.0",
|
|
"structlog>=24.1.0",
|
|
"python-json-logger>=2.0.7",
|
|
"python-multipart>=0.0.6",
|
|
"httpx>=0.26.0",
|
|
"tenacity>=8.2.0",
|
|
"pytz>=2024.1",
|
|
"python-dateutil>=2.8.2",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.0.0",
|
|
"pytest-asyncio>=0.23.0",
|
|
"pytest-cov>=4.1.0",
|
|
"httpx>=0.26.0",
|
|
"faker>=22.0.0",
|
|
"ruff>=0.2.0",
|
|
"mypy>=1.8.0",
|
|
"pre-commit>=3.6.0",
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["setuptools>=68.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[tool.setuptools.packages.find]
|
|
include = ["app*"]
|
|
|
|
[tool.uv]
|
|
dev-dependencies = [
|
|
"pytest>=8.0.0",
|
|
"pytest-asyncio>=0.23.0",
|
|
"pytest-cov>=4.1.0",
|
|
"httpx>=0.26.0",
|
|
"faker>=22.0.0",
|
|
"ruff>=0.2.0",
|
|
"mypy>=1.8.0",
|
|
"pre-commit>=3.6.0",
|
|
]
|
|
|
|
[tool.ruff]
|
|
target-version = "py311"
|
|
line-length = 100
|
|
select = ["E", "W", "F", "I", "N", "UP", "B", "C4", "T20"]
|
|
ignore = ["E501", "B008"]
|
|
per-file-ignores = { "tests/*" = ["S101", "S106"] }
|
|
|
|
[tool.ruff.format]
|
|
quote-style = "double"
|
|
indent-style = "space"
|
|
skip-magic-trailing-comma = false
|
|
|
|
[tool.mypy]
|
|
python_version = "3.11"
|
|
warn_return_any = true
|
|
warn_unused_configs = true
|
|
disallow_untyped_defs = true
|
|
disallow_incomplete_defs = true
|
|
check_untyped_defs = true
|
|
no_implicit_optional = true
|
|
strict_optional = true
|
|
enable_error_code = ["unused-ignore"]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|
|
python_files = ["test_*.py"]
|
|
python_classes = ["Test*"]
|
|
python_functions = ["test_*"]
|
|
|
|
[tool.coverage.run]
|
|
source = ["app"]
|
|
omit = ["tests/*", "*/migrations/*"]
|
|
|
|
[tool.coverage.report]
|
|
exclude_lines = [
|
|
"pragma: no cover",
|
|
"def __repr__",
|
|
"raise NotImplementedError",
|
|
"if __name__ == \"__main__\":",
|
|
] |