From 88e3663dbe719845e2fcb00d25cb16bba558f817 Mon Sep 17 00:00:00 2001 From: Zanie Date: Thu, 26 Oct 2023 13:44:06 -0500 Subject: [PATCH] Fix affected rules total --- python/ruff-ecosystem/ruff_ecosystem/check.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/python/ruff-ecosystem/ruff_ecosystem/check.py b/python/ruff-ecosystem/ruff_ecosystem/check.py index 7ae1764002..1a202e9be5 100644 --- a/python/ruff-ecosystem/ruff_ecosystem/check.py +++ b/python/ruff-ecosystem/ruff_ecosystem/check.py @@ -168,7 +168,12 @@ class RuleChanges: removed_fixes: Counter = field(default_factory=Counter) def rule_codes(self) -> set[str]: - return set(self.added_violations.keys()).union(self.removed_violations.keys()) + return ( + set(self.added_violations.keys()) + .union(self.removed_violations.keys()) + .union(self.added_fixes.keys()) + .union(self.removed_fixes.keys()) + ) def __add__(self, other: Self) -> Self: if not isinstance(other, type(self)):