-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
82 lines (75 loc) · 1.74 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
[project]
name = "htpy"
description = "htpy - HTML in Python"
requires-python = ">=3.10"
dynamic = ["version"]
dependencies = [
"markupsafe>=2.0.0"
]
readme = "docs/README.md"
authors = [
{ name="Andreas Pelme", email="[email protected]" },
]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Development Status :: 4 - Beta",
"Topic :: Text Processing :: Markup :: HTML",
"Operating System :: OS Independent",
"Typing :: Typed",
]
# Install with pip install .[dev]
optional-dependencies.dev = [
"pre-commit",
"flit",
"mypy",
"pyright",
"pytest",
"black",
"ruff",
"django",
"django-stubs",
"jinja2",
"starlette",
"httpx",
]
optional-dependencies.docs = [
"mkdocs-material==9.5.12",
]
[project.urls]
Homepage = "https://htpy.dev"
Repository = "https://github.com/pelme/htpy"
Documentation = "https://htpy.dev"
Issues = "https://github.com/pelme/htpy/issues"
[project.scripts]
html2htpy = "htpy.html2htpy:main"
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[tool.flit.module]
name = "htpy"
[tool.ruff]
line-length = 100
lint.select = [
"F", # Pyflakes
"E", # pycodestyle error
"W", # pycodestyle warning
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"TCH", # flake8-type-checking
"RUF100", # yesqa equivalence
"UP", # pyupgrade
"TID", # flake8-tidy-imports
]
lint.ignore = [
"B904",
]
[tool.mypy]
strict = true
packages = ["htpy", "tests"]
exclude = ["examples", "scripts"]
[tool.pyright]
include = ["htpy", "tests"]
strict = ["htpy", "tests"]