Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.13"]
python-version: ["3.14"]

steps:
- name: Checkout repository
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,15 @@ Or you can use [UV](https://docs.astral.sh/uv/) to run cookiecutter:
```bash
uvx cookiecutter gh:getludic/template
```

**Note:** This template uses Ludic 1.0.0+ which requires Python 3.14+ and uses t-strings. If you need to create a project with Ludic 0.5.x, use the 0.5 tag:

```bash
cookiecutter gh:getludic/template --checkout 0.5
```

Or with UV:

```bash
uvx cookiecutter gh:getludic/template --checkout 0.5
```
11 changes: 6 additions & 5 deletions {{ cookiecutter.project_slug }}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ authors = [
]
readme = "README.md"
dependencies = [
"ludic[full]",
"ludic[full]>=1.0.0",
"uvicorn",
]
requires-python = ">=3.12"
requires-python = ">=3.14"

[tool.uv]
dev-dependencies =[
[dependency-groups]
dev = [
"mypy",
"pytest",
"httpx",
Expand All @@ -33,10 +33,11 @@ include = ["src", "README.md", "pyproject.toml"]
packages = ["src"]

[tool.mypy]
python_version = "3.13"
python_version = "3.14"
strict = true
disallow_subclassing_any = false
plugins = "ludic.mypy_plugin"
disable_error_code = ["misc"]

[tool.pytest.ini_options]
testpaths = "tests"
Expand Down
2 changes: 1 addition & 1 deletion {{ cookiecutter.project_slug }}/src/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ class Hello(Component[NoChildren, HelloAttrs]):

@override
def render(self) -> Box:
return Box(f"Hello, {b(self.attrs["name"])}! This is a sample component.")
return Box(t"Hello, {b(self.attrs["name"])}! This is a sample component.")