@@ -90,6 +90,28 @@ def test_get_domain(self):
9090 domain = topics .get_domain ("core.mxenv" )
9191 self .assertEqual (domain .fqn , "core.mxenv" )
9292
93+ def test_ruff_domain_settings (self ):
94+ """Test ruff domain has correct settings for check --fix feature."""
95+ domain = topics .get_domain ("qa.ruff" )
96+ self .assertEqual (domain .fqn , "qa.ruff" )
97+
98+ settings = {s .name : s for s in domain .settings }
99+
100+ # Verify RUFF_FIXES setting
101+ self .assertIn ("RUFF_FIXES" , settings )
102+ ruff_fixes = settings ["RUFF_FIXES" ]
103+ self .assertEqual (ruff_fixes .default , "false" )
104+ self .assertIn ("ruff check --fix" , ruff_fixes .description )
105+
106+ # Verify RUFF_UNSAFE_FIXES setting
107+ self .assertIn ("RUFF_UNSAFE_FIXES" , settings )
108+ ruff_unsafe = settings ["RUFF_UNSAFE_FIXES" ]
109+ self .assertEqual (ruff_unsafe .default , "false" )
110+ self .assertIn ("unsafe fixes" , ruff_unsafe .description )
111+
112+ # Verify RUFF_SRC setting still exists
113+ self .assertIn ("RUFF_SRC" , settings )
114+
93115 @testing .temp_directory
94116 def test_Domain (self , tmpdir ):
95117 domain_path = tmpdir / "domain.mk"
0 commit comments