Skip to content

Commit

Permalink
fix failing formatting due to outdated black
Browse files Browse the repository at this point in the history
  • Loading branch information
Krande committed Feb 7, 2023
1 parent 24da9fd commit 01c616e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ dev:
mamba env update --file environment.dev.yml --prune

format:
black . && isort . && flake8 .
black --config pyproject.toml . && isort . && ruff . --fix
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@ build-backend = "setuptools.build_meta"
[tool.black]
line-length = 120

[tool.ruff]
line-length = 120
ignore = ["E741"]

[tool.isort]
profile = "black"
1 change: 0 additions & 1 deletion src/paradoc/io/word/references.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ def add_bookmark(paragraph: Paragraph, bookmark_text, bookmark_name):


def insert_caption(pg: Paragraph, prefix, run, text, is_appendix: bool):

heading_ref = "Appendix" if is_appendix is True else '"Heading 1"'

seq1 = pg._element._new_r()
Expand Down
1 change: 0 additions & 1 deletion src/paradoc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ def basic_equation_compiler(f, print_latex=False, print_formula=False):


def variable_sub(md_doc_str, variable_dict, md_file: MarkDownFile):

key_re = re.compile("{{(.*)}}")
for m in key_re.finditer(md_doc_str):
res = m.group(1)
Expand Down

0 comments on commit 01c616e

Please sign in to comment.