Skip to content

Commit

Permalink
Add linters and black formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
megabyde committed Nov 22, 2022
1 parent a9efb49 commit 4743308
Show file tree
Hide file tree
Showing 5 changed files with 476 additions and 1 deletion.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CHECK_DIRECTORIES ?= .

.PHONY: all
all: check

.PHONY: check
check:
poetry check -v
poetry run black --check $(CHECK_DIRECTORIES)
poetry run isort -c $(CHECK_DIRECTORIES)
poetry run flake8 $(CHECK_DIRECTORIES)

.PHONY: format
format:
poetry run black $(CHECK_DIRECTORIES)
poetry run isort $(CHECK_DIRECTORIES)
2 changes: 1 addition & 1 deletion pandoc-minted.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def minted(key, value, format, meta):

if key == "CodeBlock":
template = Template(
"\\begin{minted}[$attributes]{$language}\n$contents\n\end{minted}"
"\\begin{minted}[$attributes]{$language}\n$contents\n\\end{minted}"
)
Element = RawBlock
elif key == "Code":
Expand Down
Loading

0 comments on commit 4743308

Please sign in to comment.