forked from SigmaHQ/pySigma-validators-sigmaHQ
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
88 lines (70 loc) · 2.1 KB
/
Copy pathpyproject.toml
File metadata and controls
88 lines (70 loc) · 2.1 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
[project]
name = "pySigma-validators-sigmahq"
version = "0.21.1"
description = "pySigma SigmaHQ validators"
license = "LGPL-2.1-only"
readme = "README.md"
requires-python = ">=3.10,<4.0"
authors = [
{name = "François Hubaut", email = "frack113@users.noreply.github.com" }
]
maintainers = [
{name = "François Hubaut", email = "frack113@users.noreply.github.com" },
{name = "Christian Burkard", email = "phantinuss@users.noreply.github.com" }
]
keywords = [ "pySigma", "SigmaHQ", "validators"]
dependencies = [
"pysigma >=1.3",
"diskcache >=5.6",
"requests >=2.34"
]
[project.urls]
repository = "https://github.com/SigmaHQ/pySigma_validators_sigmaHQ"
[tool.poetry]
packages = [
{ include = "sigma" }
]
[tool.poetry.group.dev.dependencies]
ruff = ">=0.12,<1"
defusedxml = "^0.7"
pytest = "^9.1"
pytest-cov = "^7.1"
mypy = "^2.0"
check-jsonschema = "^0.37"
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "W", "I001", "S", "PLR"]
[tool.ruff.lint.per-file-ignores]
# F401: Import not used (intentional in __init__.py to expose public API)
"__init__.py" = ["F401"]
# S101: assert is acceptable in tests
# PLR2004: Magic values (e.g., 2) sometimes make more sense than introducing a constant for a one-off comparison
# S108: /tmp usage is acceptable in test fixtures
"tests/**" = ["S101", "PLR2004", "S108"]
# S101: assert is acceptable in tools
"tools/**" = ["S101"]
# PLR0912: Too many branches - complex validation logic in field validators
"sigma/validators/sigmahq/fieldname.py" = ["PLR0912"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.mypy]
python_version = "3.10"
warn_return_any = false
warn_unused_configs = false
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = false
disallow_untyped_decorators = false
no_implicit_optional = false
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["pytest.*"]
ignore_missing_imports = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
filterwarnings = ["ignore::DeprecationWarning"]