Skip to content

Commit

Permalink
Added new exception and exported functions. Fixed pre-commit git hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
Franco Masotti committed Apr 8, 2019
1 parent 856f45a commit 5680014
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .githooks/pre-commit
Expand Up @@ -24,9 +24,5 @@
make test && make pep && make doc
if [ $? -ne 0 ]; then
exit 1
else
exit 0
fi
git add .


3 changes: 2 additions & 1 deletion md_toc/__init__.py
Expand Up @@ -26,7 +26,8 @@
compute_toc_line_indentation_spaces, build_toc_line_without_indentation,
build_toc, build_multiple_tocs, write_string_on_file_between_markers,
write_strings_on_files_between_markers, is_valid_code_fence_indent,
is_opening_code_fence, is_closing_code_fence)
is_opening_code_fence, is_closing_code_fence, build_indentation_list,
toc_renders_as_list)
from .cli import (CliInterface)
from .exceptions import (GithubOverflowCharsLinkLabel, GithubEmptyLinkLabel,
GithubOverflowOrderedListMarker,
Expand Down
4 changes: 4 additions & 0 deletions md_toc/exceptions.py
Expand Up @@ -35,3 +35,7 @@ class GithubOverflowOrderedListMarker(Exception):

class StdinIsNotAFileToBeWritten(Exception):
"""stdin cannot be written onto."""


class TocDoesNotRenderAsCoherentList(Exception):
"""TOC list indentations are either wrong or not what the user intended."""

0 comments on commit 5680014

Please sign in to comment.