diff --git a/generator/pyproject.toml b/generator/pyproject.toml new file mode 100644 index 0000000..9a7242b --- /dev/null +++ b/generator/pyproject.toml @@ -0,0 +1,43 @@ +[project] +name = "bitcart-compose-generator" +version = "1.0.0" +description = "Generate docker compose files based on env variables" +requires-python = ">=3.11" +dependencies = ["oyaml"] + +[dependency-groups] +dev = ["pre-commit", "pytest", "pytest-cov", "ruff"] + +[tool.ruff] +target-version = "py311" +line-length = 127 + +[tool.ruff.lint] +select = [ + "F", + "E", + "I", + "UP", + "YTT", + "B", + "T10", + "C", + "SIM", + "RUF100", + "RET", + "A", + "S", + "ASYNC", +] +ignore = ["RET502", "RET503", "S104", "S507", "ASYNC110"] +mccabe = { max-complexity = 12 } + +[tool.ruff.lint.per-file-ignores] +"tests/*" = ["S"] + +[tool.pytest.ini_options] +addopts = ["--cov=.", "--cov-report", "term-missing"] +filterwarnings = [ + "error::DeprecationWarning", + "error::PendingDeprecationWarning", +] diff --git a/pyproject.toml b/pyproject.toml index 44a29b7..642bdd3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,43 +1,2 @@ -[project] -name = "bitcart-compose-generator" -version = "1.0.0" -description = "Generate docker compose files based on env variables" -requires-python = ">=3.11" -dependencies = ["oyaml"] - -[dependency-groups] -dev = ["pre-commit", "pytest", "pytest-cov", "ruff"] - -[tool.ruff] -target-version = "py311" -line-length = 127 - -[tool.ruff.lint] -select = [ - "F", - "E", - "I", - "UP", - "YTT", - "B", - "T10", - "C", - "SIM", - "RUF100", - "RET", - "A", - "S", - "ASYNC", -] -ignore = ["RET502", "RET503", "S104", "S507", "ASYNC110"] -mccabe = { max-complexity = 12 } - -[tool.ruff.lint.per-file-ignores] -"generator/tests/*" = ["S"] - -[tool.pytest.ini_options] -addopts = ["--cov=.", "--cov-report", "term-missing"] -filterwarnings = [ - "error::DeprecationWarning", - "error::PendingDeprecationWarning", -] +[tool.uv.workspace] +members = ["generator"] diff --git a/uv.lock b/uv.lock index f00a2a3..64f2d78 100644 --- a/uv.lock +++ b/uv.lock @@ -1,10 +1,15 @@ version = 1 requires-python = ">=3.11" +[manifest] +members = [ + "bitcart-compose-generator", +] + [[package]] name = "bitcart-compose-generator" version = "1.0.0" -source = { virtual = "." } +source = { virtual = "generator" } dependencies = [ { name = "oyaml" }, ]