scripts: tests: apply ruff linting to test_domains.py Somehow this file had no exclude rules in .ruff-excludes.toml. Make it compliant going forward. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>