- Cria health_check/ com __init__.py, _ping.py e _config.py - healthcheck.py vira CLI fino que usa o pacote - pyproject.toml completo com build system (hatchling) e metadados - docs/ping-payload.md atualizado com instruções de uso como biblioteca
36 lines
739 B
TOML
36 lines
739 B
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "health-check"
|
|
version = "1.0.2"
|
|
description = "Lightweight Healthchecks.io ping client with opinionated payload (agent, device, ips, uptime)"
|
|
readme = "README.md"
|
|
requires-python = ">=3.9"
|
|
license = { text = "MIT" }
|
|
dependencies = []
|
|
|
|
[project.scripts]
|
|
health-check = "healthcheck:main"
|
|
|
|
[tool.ruff]
|
|
target-version = "py39"
|
|
line-length = 110
|
|
|
|
[tool.ruff.lint]
|
|
select = [
|
|
"E", # pycodestyle errors
|
|
"W", # pycodestyle warnings
|
|
"F", # pyflakes
|
|
"I", # isort
|
|
"UP", # pyupgrade
|
|
"B", # flake8-bugbear
|
|
"SIM", # flake8-simplify
|
|
]
|
|
ignore = [
|
|
"B904",
|
|
]
|
|
|
|
[tool.ruff.lint.isort]
|
|
known-first-party = ["health_check"]
|