Fix: remove index modifications

This commit is contained in:
Bertrand Benjamin 2022-08-22 21:18:36 +02:00
parent a657ccf491
commit 59f82628ae

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)