Skip to content

Commit

Permalink
Fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
norbusan committed Apr 17, 2024
1 parent 9fd955b commit 2d2789b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions tex2pdf_service/Appliance.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ WORKDIR /usr/local/texlive/2023
COPY texlive/2023/texmf-arxiv/ ./texmf-arxiv/
COPY texlive/2023/texmf-local/ ./texmf-local/
COPY texlive/2023/texmf.cnf .
# apply necessary patches
COPY texlive/2023/patches/ ./patches
RUN patch -p0 <patches/0001-pdftex-def.patch
RUN chown -R worker texmf.cnf ./texmf-arxiv/ ./texmf-local/

USER worker
Expand Down
6 changes: 3 additions & 3 deletions tex2pdf_service/tex2pdf/tex_to_pdf_converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def produce_pdf(self, tex_file: str, work_dir: str, in_dir: str, out_dir: str) -
pass

@abstractmethod
def _base_runner(self, tex_file:str, work_dir: str, in_dir: str, out_dir: str) -> dict:
def _base_runner(self, step: str, tex_file:str, work_dir: str, in_dir: str, out_dir: str) -> dict:
"""Run the base engine of the converter."""
pass

Expand Down Expand Up @@ -496,13 +496,13 @@ def produce_pdf(self, tex_file: str, work_dir: str, in_dir: str, out_dir: str) -
logger.debug("latex.produce_pdf", extra={ID_TAG: self.conversion_tag, "outcome": outcome})
return outcome

def _latex_run(self, tag: str, tex_file: str, work_dir: str, in_dir: str, _out_dir: str) -> dict:
def _latex_run(self, step: str, tex_file: str, work_dir: str, in_dir: str, out_dir: str) -> dict:
# breaks many packages... f"-output-directory=../{bod}"
args = ["/usr/bin/latex", "-interaction=batchmode", "-file-line-error", "-recorder"]
if WITH_SHELL_ESCAPE:
args.append("-shell-escape")
args.append(tex_file)
return self._base_to_dvi_run(tag, self.stem, args, work_dir, in_dir)
return self._base_to_dvi_run(step, self.stem, args, work_dir, in_dir)

_base_runner = _latex_run

Expand Down

0 comments on commit 2d2789b

Please sign in to comment.