_            _    _        _         _
      /\ \         /\ \ /\ \     /\_\      / /\
      \_\ \       /  \ \\ \ \   / / /     / /  \
      /\__ \     / /\ \ \\ \ \_/ / /     / / /\ \__
     / /_ \ \   / / /\ \ \\ \___/ /     / / /\ \___\
    / / /\ \ \ / / /  \ \_\\ \ \_/      \ \ \ \/___/
   / / /  \/_// / /   / / / \ \ \        \ \ \
  / / /      / / /   / / /   \ \ \   _    \ \ \
 / / /      / / /___/ / /     \ \ \ /_/\__/ / /
/_/ /      / / /____\/ /       \ \_\\ \/___/ /
\_\/       \/_________/         \/_/ \_____\/
texlive-hook-pre-commit-pkg 2024.2
Channel: guix
Location: gnu/packages/tex.scm (gnu packages tex)
Home page: https://ctan.org/pkg/hook-pre-commit-pkg
Licenses: GPL 3
Synopsis: Pre-commit git hook for LaTeX package developpers
Description:

This package provides a pre-commit git hook to check basic LaTeX syntax for the use of package developers. It is installed by copying it into the .git/.hooks file. It then checks the following file types: .sty, .dtx, .bbx, .cbx, and .lbx. It performs the following checks:

  • each line must be terminated by %, without a space before it;

  • empty lines are allowed, but not lines with nothing but spaces in them;

  • \begin{macro} and \end{macro} must be paired;

  • \begin{macrocode} and \end{macrocode} must be paired;

  • \begin{macro} must have a second argument;

  • one space must be printed between % and \begin{macro} or \end{macro}. % must be the first character in the line;

  • four spaces must be printed between % and \begin{macrocode} or \end{macrocode};

  • \cs argument must not start with a backslash.

Total results: 1