forked from EmilStenstrom/justhtml
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
107 lines (96 loc) · 2.1 KB
/
pyproject.toml
File metadata and controls
107 lines (96 loc) · 2.1 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
[project]
name = "justhtml"
authors = [{ name = "Emil Stenström", email = "emil@emilstenstrom.se" }]
version = "1.8.0"
description = "A pure Python HTML5 parser that just works."
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
[project.optional-dependencies]
benchmark = [
"psutil",
"zstandard",
"html5lib",
"lxml",
"beautifulsoup4",
"selectolax",
"html5-parser",
"markupever",
]
dev = [
"ruff==0.14.7",
"coverage",
"build",
"twine",
"pre-commit",
"mypy>=1.0; platform_python_implementation != 'PyPy'",
]
[project.urls]
Homepage = "https://github.com/emilstenstrom/justhtml"
Issues = "https://github.com/emilstenstrom/justhtml/issues"
[project.scripts]
justhtml = "justhtml.__main__:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/justhtml"]
include = ["src/justhtml/py.typed"]
[tool.ruff]
target-version = "py310"
line-length = 119
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN",
"TD",
"D",
"EM",
"TRY003",
"T201",
"FBT",
"E501",
"PLR",
"C",
"SIM",
"ARG",
"ERA001",
"SLF001",
"S105",
"COM812",
"ISC001",
"EXE001",
]
[tool.ruff.lint.extend-per-file-ignores]
"tests/**/*.py" = ["S101", "PT"] # S101: allow assert, PT: we use unittest not pytest
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_ignores = false
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
show_error_codes = true
files = ["src/justhtml"]
[tool.coverage.run]
branch = true
source = ["src/justhtml"]
[tool.coverage.report]
fail_under = 100
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"def __init__",
"__slots__",
]