File size: 1,104 Bytes
ebec85b
 
 
 
 
 
654f484
ebec85b
 
 
 
 
 
 
 
 
 
 
b5bffcc
 
ebec85b
2074e2e
ebec85b
 
654f484
84e55f1
ebec85b
 
9d8008e
 
84e55f1
9d8008e
ebec85b
 
 
2074e2e
 
9d8008e
654f484
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[project]
name = "tutorial"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.11"
dependencies = ["fh-utils>=0.4.0", "python-fasthtml>=0.8"]

[project.scripts]
start_tutorial = "tutorial:start"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.uv]
dev-dependencies = [
    "ipykernel>=6.29.5",
    "lxml>=5.3.0",
    "pandas>=2.2.2",
    "pytest-cov>=5.0.0",
    "pytest-playwright>=0.5.2",
    "pytest>=8.3.2",
    "ruff>=0.6.3",
    "tomlscript>=0.2.0",
    # "devicorn",
]

[tool.uv.sources]
# fh-utils = { path = "../fh_utils", editable = true }
# devicorn = { path = "../devicorn", editable = true }

[tool.ruff]
line-length = 120
target-version = "py311"

[tool.pytest.ini_options]
addopts = "--base-url http://0.0.0.0:5001"

[tool.tomlscript]
# Lint and test
test = """
uv run ruff check
uv run pytest
"""

# Start dev server
dev = "uv run fh_utils dev src/tutorial --app get_app --factory --live"

# Run in docker
docker = """
docker build -t htmx_examples .
docker run --rm -p 5001:5001 -it htmx_examples
"""