Fix: remove index modifications
This commit is contained in:
parent
a657ccf491
commit
59f82628ae
@ -126,12 +126,10 @@ def main(argv: list[str] = None) -> int:
|
|||||||
for f in select_by_extension(diff["A"], "rst"):
|
for f in select_by_extension(diff["A"], "rst"):
|
||||||
errors += rst_lint(f)
|
errors += rst_lint(f)
|
||||||
modified += normalize_file(f, NORMALIZERS_NEW)
|
modified += normalize_file(f, NORMALIZERS_NEW)
|
||||||
r.index.add([f])
|
|
||||||
# Modified files
|
# Modified files
|
||||||
for f in select_by_extension(diff["M"], "rst"):
|
for f in select_by_extension(diff["M"], "rst"):
|
||||||
errors += rst_lint(f)
|
errors += rst_lint(f)
|
||||||
modified += normalize_file(f, NORMALIZERS_MODIFIED)
|
modified += normalize_file(f, NORMALIZERS_MODIFIED)
|
||||||
r.index.add([f])
|
|
||||||
|
|
||||||
return int(len(errors) > 0)
|
return int(len(errors) > 0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user