-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
143 lines (124 loc) · 3.09 KB
/
pyproject.toml
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
[project]
name = "djhtmx"
version = "0.0.0"
description = "Brings LiveView from Phoenix framework into Django"
authors = [
{ name = "Eddy Ernesto del Valle Pino", email = "[email protected]" }
]
readme="README.md"
license="MIT"
requires-python = ">= 3.11"
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Internet :: WWW/HTTP',
]
dependencies = [
"django>=4.1",
"pydantic>=2,<3",
"django-click>=2.3.0,<3",
"click>=8.1.3, <8.2",
"xotl.tools>=3.1.1",
"orjson>=3.10.7",
"channels>=4.1.0",
"uuid6>=2024.7.10",
"redis[hiredis]>=5.0.8",
]
[tool.uv]
dev-dependencies = [
"pywatchman>=2.0.0",
"django-stubs~=5.0.4",
"django-stubs-ext~=5.0.4",
"djlint~=1.34.1",
"ipython~=8.26.0",
"basedpyright==1.17",
"ruff==0.6.1",
"whitenoise~=6.7.0",
"isort~=5.13.2",
"ipdb~=0.13.13",
"django-extensions~=3.2.3",
"uvicorn[standard]>=0.30.6",
"lxml>=5.3.0",
"cssselect>=1.2.0",
"pygments>=2.18.0",
"coverage[toml]>=7.6.9",
"types-lxml>=2024.11.8",
]
[project.urls]
Repository="https://github.com/edelvalle/djhtmx"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/djhtmx"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.format]
preview = true
exclude = ["migrations"]
[tool.isort]
line_length = 100
profile ="django"
src_paths = ["src"]
skip_glob = ["src/**/migrations/*", "src/**/__init__.py"]
skip_gitignore = true
[tool.basedpyright]
typeCheckingMode="standard"
reportIncompatibleMethodOverride = false
reportIncompatibleVariableOverride = false
strictParameterNoneValue = false
reportMatchNotExhaustive = "error"
exclude = [
"**/static",
"**/migrations",
"**/__pycache__",
]
[tool.djlint]
# Here we ignore
# H006: Img tag should have height and width attributes
# H012: There should be no spaces around attribute =. (alpine js bindings)
# H021: Inline styles.
# H031: Metadata in html tag.
ignore = "H021,H006,H031,H012"
indent = 2
profile="django"
blank_line_after_tag="load,extends,endblock"
close_void_tags=true
[tool.coverage.run]
branch = false
[tool.coverage.report]
skip_covered = false
show_missing = true
exclude_also = [
"pragma: no cover",
"case _ as unreachable:",
"if .*TYPE_CHECKING:",
"assert False",
# "def __repr__",
# "def __hash__",
# "def __str__",
# "raise AssertionError",
# "raise NotImplementedError",
# "return NotImplemented",
# "if __name__ == .__main__.:",
# "@(abc\\.)?abstractmethod",
# "class .*\\bProtocol\\):",
# "if ((t|typing)\\.)?TYPE_CHECKING:",
# "@((t|typing)\\.)?overload",
# "((t|typing)\\.)?assert_never",
]
omit = [
"**/djhtmx/tracing.py",
"**/djhtmx/consumer.py",
"fision/*",
"manage.py",
]