Black formatting + run black unconditionally.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
cbaf681857
commit
b549d8117c
|
@ -107,7 +107,12 @@ def double_space_and_indent(paragraphs):
|
||||||
if this_paragraph_plaintext and previous_paragraph_plaintext:
|
if this_paragraph_plaintext and previous_paragraph_plaintext:
|
||||||
paragraph.paragraph_format.first_line_indent = docx.shared.Inches(0.5)
|
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._element.getparent().remove(previous_paragraph._element)
|
||||||
|
|
||||||
previous_paragraph = paragraph
|
previous_paragraph = paragraph
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -9,7 +9,7 @@ deps = -rtest_requirements.txt
|
||||||
pass_env = COVERAGE_FILE
|
pass_env = COVERAGE_FILE
|
||||||
commands =
|
commands =
|
||||||
#pytest {posargs}
|
#pytest {posargs}
|
||||||
py38,py39: black --check .
|
black --check .
|
||||||
isort --check-only --settings-path setup.cfg .
|
isort --check-only --settings-path setup.cfg .
|
||||||
flake8 format_novel tests
|
flake8 format_novel tests
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue