.pre-commit-config.yaml: add local hook pdflatex draft mode

This commit is contained in:
Aminda Suomalainen 2023-05-20 12:29:02 +03:00
parent ab667a0208
commit bbba9092f4
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -3,6 +3,7 @@ ci:
# the frequency of unnecessary PRs. # the frequency of unnecessary PRs.
# https://github.com/pre-commit-ci/issues/issues/83 # https://github.com/pre-commit-ci/issues/issues/83
autoupdate_schedule: quarterly autoupdate_schedule: quarterly
skip: [pdflatex]
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
@ -28,3 +29,12 @@ repos:
- id: editorconfig-checker - id: editorconfig-checker
alias: ec alias: ec
args: [-disable-max-line-length] args: [-disable-max-line-length]
- repo: local
hooks:
- id: pdflatex
name: pdflatex draft mode
entry: pdflatex
args: ["-draftmode", "-halt-on-error"]
language: system
types: [tex]