Black formatting + run black unconditionally.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Dan Helfman 2023-11-06 09:28:31 -08:00
parent cbaf681857
commit b549d8117c
2 changed files with 7 additions and 2 deletions

View File

@ -107,7 +107,12 @@ def double_space_and_indent(paragraphs):
if this_paragraph_plaintext and previous_paragraph_plaintext:
paragraph.paragraph_format.first_line_indent = docx.shared.Inches(0.5)
if previous_paragraph and paragraph.style == previous_paragraph.style and not paragraph.text and not previous_paragraph.text:
if (
previous_paragraph
and paragraph.style == previous_paragraph.style
and not paragraph.text
and not previous_paragraph.text
):
previous_paragraph._element.getparent().remove(previous_paragraph._element)
previous_paragraph = paragraph

View File

@ -9,7 +9,7 @@ deps = -rtest_requirements.txt
pass_env = COVERAGE_FILE
commands =
#pytest {posargs}
py38,py39: black --check .
black --check .
isort --check-only --settings-path setup.cfg .
flake8 format_novel tests