Skip to content

Commit

Permalink
add usability methods to make templating easier
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgryan committed Nov 26, 2024
1 parent f794c30 commit cf52436
Show file tree
Hide file tree
Showing 10 changed files with 328 additions and 63 deletions.
192 changes: 188 additions & 4 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ test = [
"pytest>=8.3.3",
"hypothesis>=6.118.7",
"pytest-watcher>=0.4.3",
"jinja2>=3.1.4",
]
[build-system]
requires = ["pdm-backend"]
Expand All @@ -28,8 +29,16 @@ distribution = true
test = "pytest"
fmt = "ruff format"
watch = "ptw ."
example.cmd = "uvicorn --port 8888 server:app"
example.working_dir = "example"


[tool.pdm.dev-dependencies]
lint = [
"ruff>=0.7.3",
]
example = [
"fastapi>=0.115.5",
"jinja2>=3.1.4",
"uvicorn>=0.32.1",
]
3 changes: 2 additions & 1 deletion src/detaf/cloud.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from dataclasses import dataclass
from enum import Enum
from detaf.phenomenon import Phenomenon


class CloudDescription(str, Enum):
Expand All @@ -18,7 +19,7 @@ class Type(str, Enum):


@dataclass
class Cloud:
class Cloud(Phenomenon):
description: CloudDescription
height: int | None = None
type: Type | None = None
Expand Down
Loading

0 comments on commit cf52436

Please sign in to comment.