-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (94 loc) · 2.58 KB
/
Copy pathpyproject.toml
File metadata and controls
104 lines (94 loc) · 2.58 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
[project]
name = "kompoz"
version = "0.3.3"
description = "Composable predicate and transform combinators with operator overloading"
license = "MIT"
readme = "README.md"
authors = [{ name = "Matth Ingersoll", email = "matth@mtingers.com" }]
requires-python = ">=3.13"
keywords = [
"combinator",
"predicate",
"transform",
"validation",
"rules",
"pipeline",
"functional",
"declarative",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = []
[project.urls]
Homepage = "https://github.com/mtingers/kompoz"
Repository = "https://github.com/mtingers/kompoz"
Documentation = "https://mtingers.github.io/kompoz/"
"Bug Tracker" = "https://github.com/mtingers/kompoz/issues"
Changelog = "https://github.com/mtingers/kompoz/blob/main/CHANGELOG.md"
[project.optional-dependencies]
opentelemetry = [
"opentelemetry-api>=1.39.1",
"opentelemetry-exporter-otlp>=1.39.1",
"opentelemetry-sdk>=1.39.1",
]
dev = [
"pytest-cov>=7.0.0",
"pyright>=1.1",
"pre-commit>=4.0",
]
[dependency-groups]
dev = [
"pytest>=8.0",
"pytest-cov>=7.0.0",
"ruff>=0.9.0",
"pyright>=1.1",
"pre-commit>=4.0",
]
docs = [
"mkdocs>=1.6",
"mkdocs-material>=9.5",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
line-length = 100
target-version = "py313"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP", "B", "SIM", "RUF"]
ignore = [
"E501", # line too long (handled by formatter)
# "UP038", # isinstance union syntax not supported at runtime in 3.10
"N801", # lowercase class names are intentional (e.g. during_hours, on_weekdays)
"RUF022", # __all__ is organized by category, not alphabetically
"B039", # mutable ContextVar default is intentional
"SIM108", # use ternary
"UP046", # Generic class `X` uses `Generic` subclass instead of type parameters,
# fix is Classname[T], but keeping for backwards compat
]
[tool.pyright]
pythonVersion = "3.13"
[tool.coverage.run]
source = ["kompoz"]
omit = ["tests/*"]
[tool.coverage.report]
fail_under = 68
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"if __name__ == .__main__.",
"@overload",
"\\.\\.\\.",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-v --tb=short"