Core: add pre-commit and run it on all files

This commit is contained in:
Bertrand Benjamin 2022-08-21 09:12:40 +02:00
parent e119ea87f6
commit 0cc34422fe
32 changed files with 166 additions and 164 deletions

15
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,15 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/rstcheck/rstcheck
rev: 'v6.1.0' # Use the sha / tag you want to point at
hooks:
- id: rstcheck

View File

@ -197,6 +197,3 @@
\end{enumerate}
\end{minipage}
\end{exercise}

View File

@ -57,5 +57,3 @@ On cherche à faire émerger la notion de tableau croisé. Pour cela on donne au
Étape 3: Fréquence conditionnelle et fréquence marginale
--------------------------------------------------------

View File

@ -10,4 +10,3 @@ source ~/.venv/enseignements/bin/activate
goroot(){
cd $ROOT
}

Binary file not shown.

View File

@ -257,4 +257,3 @@ Quand on change la valeur de \verb+xstep+, il faut replacer \verb+x+ par \verb+\
\end{document}

View File

@ -67,4 +67,3 @@ export tribe=$tribe
export duration=$duration
envsubst < ./tools/skeleton/eval/exercises.tex > $sequence_path/exercises.tex
envsubst < ./tools/skeleton/eval/sujet.tex > $sequence_path/sujet.tex

View File

@ -113,4 +113,3 @@ for i in `ls $SKELETONPATH/$sequence_type`
do
envsubst < $SKELETONPATH/$sequence_type/$i > $sequence_path/$i
done

View File

@ -24,4 +24,3 @@ Le barème est donné à titre indicatif, il pourra être modifié.
%%% mode: latex
%%% TeX-master: "master"
%%% End:

View File

@ -86,4 +86,3 @@
\RequirePackage{enumitem}
\setlist[itemize,1]{label=$\bullet$}

View File

@ -148,4 +148,3 @@
\hfill
\trainMode: pour s'entrainer
}

View File

@ -315,4 +315,3 @@
units=cm,
scale=.1,
}