Skip to content

Commit

Permalink
Add warning when Polyspace checker is used with other checkers
Browse files Browse the repository at this point in the history
  • Loading branch information
JokeWaumans committed Nov 25, 2024
1 parent 03dec47 commit 7912233
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mlx/warnings/warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def check_logfile(self, file):
if not self.activated_checkers:
print("No checkers activated. Please use activate_checker function")
elif "polyspace" in self.activated_checkers:
if len(self.activated_checkers) > 1:
raise WarningsConfigError("Polyspace checker cannot be combined with other warnings checkers")
self.activated_checkers["polyspace"].check(file)
else:
content = file.read()
Expand Down

0 comments on commit 7912233

Please sign in to comment.