Update project

This commit is contained in:
2025-05-10 08:44:13 +02:00
parent 6bebbee4fa
commit 3f5d9ea545
2 changed files with 75 additions and 9 deletions

View File

@ -1,3 +1,13 @@
[tool.poe.tasks]
fmt = "ruff format ${PWD}"
lint = "ruff check --fix ${PWD}"
check = "basedpyright ${PWD}"
test = "pytest ${PWD}"
all = [ {ref="fmt"}, {ref="lint"}, {ref="check"}, {ref="test"} ]
"ci:fmt" = "ruff format --check ${PWD}" # fail if not formatted
"ci:lint" = "ruff check ${PWD}"
[project]
name = "sshecret"
version = "0.1.0"
@ -22,10 +32,6 @@ dependencies = [
"python-json-logger>=3.3.0",
]
[project.scripts]
sshecret-decrypt = "sshecret.client:cli_decrypt"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
@ -34,23 +40,24 @@ build-backend = "hatchling.build"
venvPath = "."
venv = ".venv"
include = ["src"]
exclude = ["**/migrations"]
reportUnusedCallResult = false
reportExplicitAny = false
reportIncompatibleVariableOverride = false
executionEnvironments = [
{ root = "packages/sshecret_client" },
{ root = "packages/sshecret-backend" },
{ root = "packages/sshecret-sshd" },
{ root = "packages/sshecret-admin" },
]
[tool.uv.workspace]
members = ["packages/sshecret_client", "packages/sshecret-backend", "packages/sshecret-sshd", "packages/sshecret-admin"]
members = ["packages/sshecret-backend", "packages/sshecret-sshd", "packages/sshecret-admin"]
[dependency-groups]
dev = [
"construct-typing>=0.6.2",
"mypy>=1.15.0",
"poethepoet>=0.34.0",
"python-dotenv>=1.0.1",
]
test = [