-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (99 loc) · 3.04 KB
/
pyproject.toml
File metadata and controls
110 lines (99 loc) · 3.04 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[project]
name = "component-framework"
version = "0.4.1b0"
description = "Framework-agnostic server components with LiveView-style interactivity"
readme = "README.md"
requires-python = ">=3.11"
license = {text = "MIT"}
authors = [
{name = "Francis Secada", email = "francis.secada@gmail.com"}
]
keywords = ["components", "server-components", "liveview", "htmx", "fastapi", "django", "litestar"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"pydantic>=2.0",
]
[project.optional-dependencies]
fastapi = [
"fastapi>=0.109.0",
"uvicorn[standard]>=0.27.0",
"jinjax>=0.41",
"python-multipart>=0.0.5",
]
django = [
"django>=4.2",
"django-cotton>=0.9",
"channels>=4.0",
"channels-redis>=4.1",
]
litestar = [
"litestar>=2.0",
"jinja2>=3.1",
]
websockets = [
"websockets>=12.0",
]
dev-base = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-django>=4.5.0",
"httpx>=0.26.0",
"ruff>=0.1.0",
"ty>=0.0.18",
]
dev = [
"component-framework[dev-base,fastapi,django,litestar,websockets]",
"pre-commit>=3.5.0",
"pdoc>=14.0",
]
all = [
"component-framework[fastapi,django,litestar,websockets]",
]
[project.urls]
Homepage = "https://github.com/fsecada01/component-framework"
Documentation = "https://fsecada01.github.io/component-framework/"
Repository = "https://github.com/fsecada01/component-framework"
Issues = "https://github.com/fsecada01/component-framework/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/component_framework"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
asyncio_mode = "auto"
[tool.ty.src]
include = ["src"]
[tool.ty.rules]
# Mixin patterns (DjangoModelMixin, ModelFormComponent) access attributes from
# cooperating base classes that ty cannot resolve through cooperative inheritance.
# Django ORM also uses dynamic attributes (objects, DoesNotExist) that ty cannot
# see. Suppress these until ty gains Django plugin support.
unresolved-attribute = "warn"
# The mixin classes intentionally iterate over attributes defined by cooperating
# classes, producing false not-iterable diagnostics.
not-iterable = "warn"
# Cooperative inheritance call-non-callable false positive (save_instance via hasattr guard).
call-non-callable = "warn"
# Django adapter intentionally narrows method signatures (SingleComponentView.post
# drops the `name` param, ComponentConsumer.disconnect renames `code` → `close_code`).
# These are valid Liskov violations in Django's CBV/consumer patterns.
invalid-method-override = "warn"
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP"]
ignore = []
[tool.ruff.format]
quote-style = "double"
indent-style = "space"