Compare commits
No commits in common. "b32ba93c6e86d1b1f420afe7cd9b8599b039a299" and "0c3ee1c0204d22141deef5e0e4229c96d44791a1" have entirely different histories.
b32ba93c6e
...
0c3ee1c020
@ -1,5 +0,0 @@
|
|||||||
- id: clean-rst
|
|
||||||
name: clean-rst
|
|
||||||
description: Clean rst and verify dates
|
|
||||||
entry: clean-rst
|
|
||||||
language: python
|
|
@ -1 +1 @@
|
|||||||
__version__ = "0.1.1"
|
__version__ = "0.1.0"
|
||||||
|
@ -126,10 +126,12 @@ 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)
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "clean-rst"
|
name = "clean-rst"
|
||||||
version = "0.1.1"
|
version = "0.1.0"
|
||||||
description = "pre-commit to clean rst index files"
|
description = "pre-commit to clean rst index files"
|
||||||
authors = ["Bertrand Benjamin <benjamin.bertrand@opytex.org>"]
|
authors = ["Bertrand Benjamin <benjamin.bertrand@opytex.org>"]
|
||||||
|
|
||||||
|
@ -2,4 +2,4 @@ from clean_rst import __version__
|
|||||||
|
|
||||||
|
|
||||||
def test_version():
|
def test_version():
|
||||||
assert __version__ == "0.1.1"
|
assert __version__ == "0.1.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user