Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
58 lines (49 loc) · 1.86 KB
/
Copy pathpyproject.toml
File metadata and controls
58 lines (49 loc) · 1.86 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
[build-system]
requires = ["hatchling>=1.25"]
build-backend = "hatchling.build"
[project]
name = "spillgate"
version = "0.1.1"
description = "Decode untrusted compressed data with mandatory limits (decompression-bomb gate)."
readme = "README.md"
license = { file = "LICENSE" }
authors = [{ name = "Felix Middelhoff" }]
requires-python = ">=3.11"
dependencies = [] # the core needs nothing but the standard library
keywords = ["gzip", "deflate", "brotli", "zstd", "decompression-bomb", "security", "content-encoding"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Security",
"Topic :: System :: Archiving :: Compression",
"Typing :: Typed",
]
[project.optional-dependencies]
brotli = ["brotli>=1.2.1,<2"]
zstd = ["zstandard>=0.25.0,<1"]
dev = ["pytest>=8", "hypothesis>=6.100", "ruff>=0.6", "mypy>=1.11"]
[project.urls]
Homepage = "https://github.com/FelixMiddelhoff/spillgate-python"
Specification = "https://github.com/FelixMiddelhoff/spillgate/blob/main/spec/SPEC.md"
[tool.hatch.build.targets.wheel]
packages = ["src/spillgate"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src", "tests"]
addopts = "-ra --strict-markers"
markers = ["large: conformance vectors that decode very large generated inputs"]
[tool.ruff]
line-length = 100
src = ["src", "tests", "tools"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "UP", "S", "SIM", "RUF"]
ignore = ["S101"] # assert is fine in tests
[tool.ruff.lint.per-file-ignores]
# The tests contain hostile strings on purpose (look-alike and non-breaking characters).
"tests/*" = ["E501", "RUF001", "RUF002", "RUF003", "S311"]
[tool.mypy]
strict = true
files = ["src", "tools"]