Added typos as a pre-commit hook

This commit is contained in:
Alejandro Angulo 2024-05-04 14:52:24 -07:00
parent 7c36b80afc
commit 6105b711b9
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
2 changed files with 7 additions and 3 deletions

View file

@ -4,7 +4,7 @@ set -e
# Following variables are set via sed in the buildPhase step
PREFIX=""
# Intentionally overriding PATH so supressing shellcheck
# Intentionally overriding PATH so suppressing shellcheck
# shellcheck disable=SC2123
PATH=""
NERDFONTS=""

View file

@ -42,12 +42,12 @@
pkgs.stdenvNoCC.mkDerivation rec {
name = "alejandro-resume";
src = self;
propogatedBuildInputs = [pkgs.coreutils nerdfonts-hack tex];
propagatedBuildInputs = [pkgs.coreutils nerdfonts-hack tex];
phases = ["unpackPhase" "buildPhase" "installPhase"];
buildPhase = ''
cp build.sh alejandro-resume
sed -i 's!PREFIX=""!PREFIX="${builtins.placeholder "out"}"!g' alejandro-resume
sed -i 's!PATH=""!PATH="${lib.makeBinPath propogatedBuildInputs}"!g' alejandro-resume
sed -i 's!PATH=""!PATH="${lib.makeBinPath propagatedBuildInputs}"!g' alejandro-resume
sed -i 's!TEXVARS=""!TEXVARS="${texvars}"!g' alejandro-resume
sed -i 's!NERDFONTS=""!NERDFONTS="${nerdfonts-hack}"!g' alejandro-resume
'';
@ -81,6 +81,10 @@
end-of-file-fixer.enable = true;
shellcheck.enable = true;
trim-trailing-whitespace.enable = true;
typos = {
enable = true;
always_run = true;
};
latexindent = {
enable = true;