Black formatting + run black unconditionally.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
cbaf681857
commit
b549d8117c
2 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
2
tox.ini
2
tox.ini
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue