style: auto-format with black and isort

This commit is contained in:
Capa Bot
2026-03-12 11:35:21 +00:00
committed by mr-tz
parent 92979c7841
commit d9b65d0baf

View File

@@ -176,8 +176,7 @@ def test_get_rules_skips_empty_yaml(tmp_path):
# get_rules should skip empty files with a warning instead of raising (issue #2900) # get_rules should skip empty files with a warning instead of raising (issue #2900)
(tmp_path / "empty.yml").write_bytes(b"") (tmp_path / "empty.yml").write_bytes(b"")
(tmp_path / "valid.yml").write_text( (tmp_path / "valid.yml").write_text(
textwrap.dedent( textwrap.dedent("""
"""
rule: rule:
meta: meta:
name: test rule name: test rule
@@ -186,8 +185,7 @@ def test_get_rules_skips_empty_yaml(tmp_path):
dynamic: process dynamic: process
features: features:
- api: CreateFile - api: CreateFile
""" """),
),
encoding="utf-8", encoding="utf-8",
) )
# empty.yml is skipped with a warning; valid.yml is loaded normally # empty.yml is skipped with a warning; valid.yml is loaded normally