-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (124 loc) · 3.48 KB
/
Copy pathpyproject.toml
File metadata and controls
140 lines (124 loc) · 3.48 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "patterndb_yaml"
# Version is automatically determined from git tags via hatch-vcs
dynamic = ["version"]
description = "YAML-based pattern matching with multi-line capabilities for log normalization using syslog-ng patterndb"
readme = "README.md"
license = {file = "LICENSE"}
authors = [
{name = "Jeffrey Urban"}
]
requires-python = ">=3.9"
keywords = [
"terminal",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Topic :: Text Processing :: Filters",
"Topic :: Utilities",
"Topic :: System :: Logging",
"Topic :: Terminals",
"Environment :: Console",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"typer>=0.9.0",
"rich>=13.0.0",
"pyyaml>=6.0.0",
"packaging>=23.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"ruff>=0.1.9",
"mypy>=1.8.0",
"pre-commit>=3.6.0",
"types-pyyaml>=6.0.0",
]
docs = [
"mkdocs-material>=9.5.0",
"mkdocstrings[python]>=0.25.0",
"sybil>=6.0.0",
"pymdown-extensions>=10.0.0",
"termynal>=0.12.0",
]
[project.scripts]
patterndb-yaml = "patterndb_yaml.cli:app"
[project.urls]
Homepage = "https://github.com/JeffreyUrban/patterndb-yaml"
Repository = "https://github.com/JeffreyUrban/patterndb-yaml"
Issues = "https://github.com/JeffreyUrban/patterndb-yaml/issues"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.wheel]
packages = ["src/patterndb_yaml"]
[tool.pytest.ini_options]
testpaths = ["tests", "docs"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
markers = [
"unit: Unit tests for individual components",
"integration: Integration tests for multiple components",
"slow: Slow tests (skipped by default)",
"no_cover: Skip coverage for this test (used for tests that conflict with coverage instrumentation)",
]
[tool.black]
line-length = 100
target-version = ["py39"]
[tool.ruff]
line-length = 100
target-version = "py39"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"B008", # Function calls in argument defaults (typer idiom)
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["E741", "E501"] # Allow short var names and long lines in tests
"*/_version.py" = ["UP", "I001"] # Auto-generated file by hatch-vcs
[tool.ruff.format]
quote-style = "double"
[tool.mypy]
python_version = "3.9"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
[tool.coverage.run]
source = ["src/patterndb_yaml"]
omit = ["*/tests/*"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.hatch.build.hooks.vcs]
version-file = "src/patterndb_yaml/_version.py"