Skip to content

Commit

Permalink
Move _get_ignore_handler
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Feb 4, 2024
1 parent ced0e07 commit f62d325
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions sphinx_autobuild/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,6 @@ def _get_build_args(args):
return build_args, pre_build_commands


def _get_ignore_handler(ignore, regex_based, out_dir, doctree_dir, warnings_file):
regular = list(map(os.path.realpath, ignore))
regular.append(os.path.realpath(out_dir)) # output directory
if doctree_dir: # Doctrees
regular.append(os.path.realpath(doctree_dir))
if warnings_file: # Logfile
regular.append(os.path.realpath(warnings_file))

return Ignore(regular, regex_based)


def get_parser():
"""Get the application's argument parser.
Expand Down Expand Up @@ -159,6 +148,17 @@ class RawTextArgumentDefaultsHelpFormatter(
return parser


def _get_ignore_handler(ignore, regex_based, out_dir, doctree_dir, warnings_file):
regular = list(map(os.path.realpath, ignore))
regular.append(os.path.realpath(out_dir)) # output directory
if doctree_dir: # Doctrees
regular.append(os.path.realpath(doctree_dir))
if warnings_file: # Logfile
regular.append(os.path.realpath(warnings_file))

return Ignore(regular, regex_based)


def main():
"""Actual application logic."""
colorama.init()
Expand Down

0 comments on commit f62d325

Please sign in to comment.