-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (113 loc) · 2.85 KB
/
pyproject.toml
File metadata and controls
126 lines (113 loc) · 2.85 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
[build-system]
requires = ["poetry-core>=2.0.0"]
build-backend = "poetry.core.masonry.api"
[project]
name = "dissec"
version = "1.2"
description = "Dissect pattern implementation for ElasticSearch"
readme = "README.rst"
requires-python = ">=3.9,<4.0"
authors = [
{ name = "Thomas Touhey", email = "thomas@touhey.fr" },
]
keywords = [
"elasticsearch",
"dissect",
"processor",
"parsing",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: CeCILL-C Free Software License Agreement (CECILL-C)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Text Processing :: Filters",
"Topic :: Utilities",
"Typing :: Typed",
]
dependencies = [
"eval-type-backport>=0.2,<0.3; python_version < '3.10'",
"pydantic>=2.7.1,<3",
"typing-extensions>=4.12.2,<5",
]
[project.urls]
homepage = "https://dissec.touhey.pro/"
"Documentation" = "https://dissec.touhey.pro/"
"Source Code" = "https://gitlab.com/kaquel/dissec"
"Bug Tracker" = "https://gitlab.com/kaquel/dissec/-/issues"
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.7.0"
pytest = "^8.2.0"
pytest-cov = "^5.0.0"
sphinx-autobuild = "^2024.4.16"
[tool.poetry.group.docs.dependencies]
autodoc-pydantic = "^2.2.0"
furo = "^2024.5.6"
sphinx = "^7.3.7"
toml = "^0.10.2"
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
update_changelog_on_bump = true
version = "0.1.4"
version_files = [
"pyproject.toml:version",
]
[tool.coverage.report]
exclude_lines = [
"@abstractmethod",
"@_abstractmethod",
"pragma: no cover"
]
[tool.ruff]
fix = true
line-length = 79
target-version = "py39"
[tool.ruff.lint]
select = [
"ANN",
"ASYNC",
"B",
"COM",
"D",
"E",
"F",
"FAST",
"G",
"I",
"Q",
"RUF",
"S",
"UP",
"W",
]
ignore = [
"ANN002", # No type annotations for *args
"ANN003", # No type annotations for **kwargs
"ANN204", # No return type for special method
"ANN401", # We allow typing.Any in certain annoying cases
"D105", # No need for docstrings in magic __methods__
"D107", # No need for docstrings in __init__
"S413", # We use pycryptodome, not pycrypto
"S608", # We build our requests ourselves here.
]
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["dissec"]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.per-file-ignores]
"docs/**.py" = ["ANN201", "D100", "D102"]
"tests/**.py" = ["D103", "S101", "S106"]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.mypy]
ignore_missing_imports = true
mypy_path = "."
warn_unused_ignores = true
[tool.pytest.ini_options]
addopts = """
--cov=dissec --cov-report html --cov-report term --doctest-modules
--ignore=docs
"""