Compare commits

..

No commits in common. "b32ba93c6e86d1b1f420afe7cd9b8599b039a299" and "0c3ee1c0204d22141deef5e0e4229c96d44791a1" have entirely different histories.

5 changed files with 5 additions and 8 deletions

View File

@ -1,5 +0,0 @@
- id: clean-rst
name: clean-rst
description: Clean rst and verify dates
entry: clean-rst
language: python

View File

@ -1 +1 @@
__version__ = "0.1.1"
__version__ = "0.1.0"

View File

@ -126,10 +126,12 @@ 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)

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "clean-rst"
version = "0.1.1"
version = "0.1.0"
description = "pre-commit to clean rst index files"
authors = ["Bertrand Benjamin <benjamin.bertrand@opytex.org>"]

View File

@ -2,4 +2,4 @@ from clean_rst import __version__
def test_version():
assert __version__ == "0.1.1"
assert __version__ == "0.1.0"