Skip to content

Commit 6e58b55

Browse files
Fix ruff formatting and update patch version
1 parent b5fcfd9 commit 6e58b55

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "detection_rules"
3-
version = "1.3.31"
3+
version = "1.3.32"
44
description = "Detection Rules is the home for rules used by Elastic Security. This repository is used for the development, maintenance, testing, validation, and release of rules for Elastic Security’s Detection Engine."
55
readme = "README.md"
66
requires-python = ">=3.12"

tests/test_all_rules.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,8 +1050,10 @@ def test_min_stack_version_supported(self):
10501050

10511051
# Get the minimum supported stack version (as string)
10521052
supported_versions = [v for v in stack_map if not v.startswith("#") and isinstance(v, str)]
1053+
10531054
def version_tuple(v):
10541055
return tuple(map(int, v.split(".")))
1056+
10551057
min_supported = min(supported_versions, key=version_tuple)
10561058
# Load all production rules
10571059
for rule in self.all_rules:
@@ -1061,8 +1063,7 @@ def version_tuple(v):
10611063
# Compare versions as tuples of ints
10621064
if version_tuple(min_stack_version) < version_tuple(min_supported):
10631065
failures.append(
1064-
f"{self.rule_str(rule)}"
1065-
f"min_stack_version={min_stack_version} < supported={min_supported}"
1066+
f"{self.rule_str(rule)}min_stack_version={min_stack_version} < supported={min_supported}"
10661067
)
10671068

10681069
if failures:

0 commit comments

Comments
 (0)