1 Commits

Author SHA1 Message Date
b32ba93c6e Fix: remove index modifications 2022-08-22 21:18:36 +02:00

View File

@@ -126,12 +126,10 @@ def main(argv: list[str] = None) -> int:
for f in select_by_extension(diff["A"], "rst"):
errors += rst_lint(f)
modified += normalize_file(f, NORMALIZERS_NEW)
r.index.add([f])
# Modified files
for f in select_by_extension(diff["M"], "rst"):
errors += rst_lint(f)
modified += normalize_file(f, NORMALIZERS_MODIFIED)
r.index.add([f])
return int(len(errors) > 0)