Report space-indented code with no setting that says so, narrow the tabs principle, and read a failure by status, not message text #743

Merged
lilleman merged 15 commits from item-542 into main 2026-11-27 16:26:55 +01:00
Showing only changes of commit 237a3e05ff - Show all commits
+1 -1
View File
@@ -61,7 +61,7 @@ class SpaceIndentation(unittest.TestCase):
def test_leaves_out_vendored_code_and_the_settings_files_it_holds(self):
self.assertIsNone(space_indented(self.checkout(**{"vendor__lib.py": SPACED, "web__node_modules__x__index.js": SPACED})))
vendored = self.checkout(**{"a.py": SPACED, "vendor__lib__.editorconfig": "indent_style = space\n", "third_party__x__package.json": '{"useTabs": false}'})
vendored = self.checkout(**{"z.py": SPACED, "vendor__lib__.editorconfig": "indent_style = space\n", "third_party__x__package.json": '{"useTabs": false}'})
self.assertEqual(space_indented(vendored), SpaceIndented(spaced=2, tabbed=0))
def test_reads_a_checkout_with_a_file_name_that_is_not_utf8(self):