-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (89 loc) · 2.14 KB
/
pyproject.toml
File metadata and controls
105 lines (89 loc) · 2.14 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
[build-system]
requires = ["hatchling>=1.25.0,<2"]
build-backend = "hatchling.build"
[project]
name = "py-snappy"
version = "0.1.0"
description = "Pure Python Snappy compression library"
readme = "README.md"
authors = [
{ name = "Thomas Coratger", email = "thomas.coratger@ethereum.org" },
]
keywords = [
"snappy",
"compression",
"decompression",
"lz77",
"google",
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: System :: Archiving :: Compression",
"Typing :: Typed",
]
requires-python = ">=3.12"
dependencies = []
[project.license]
text = "MIT"
[project.urls]
Homepage = "https://github.com/tcoratger/py-snappy"
Source = "https://github.com/tcoratger/py-snappy"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build]
exclude = [".*", "tests/", "testdata/"]
[tool.hatch.build.targets.wheel]
packages = ["src"]
[tool.ruff]
line-length = 100
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = ["E", "F", "B", "W", "I", "A", "N", "D", "C"]
fixable = ["I", "B", "E", "F", "W", "D", "C"]
ignore = ["D205", "D203", "D212", "D415", "C901", "A005", "C420"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
force-single-line = false
known-first-party = ["src"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["D", "F401", "F403"]
[tool.pytest.ini_options]
minversion = "8.3.3"
testpaths = ["tests"]
python_files = "test_*.py"
pythonpath = ["."]
addopts = [
"-ra",
"--strict-markers",
"--cov=src",
"--cov-report=term-missing",
"--cov-report=html",
"--cov-branch",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
[tool.coverage.run]
source = ["src"]
branch = true
[tool.uv]
required-version = ">=0.7.0"
[dependency-groups]
test = [
"pytest>=8.3.3,<9",
"pytest-cov>=6.0.0,<7",
"pytest-xdist>=3.6.1,<4",
]
lint = [
"ruff>=0.13.2,<1",
]
dev = [
{include-group = "test"},
{include-group = "lint"},
]