Feat: python env and githook setup on a make install
This commit is contained in:
parent
5f9b7f4085
commit
3da07e3c6e
6
Makefile
6
Makefile
@ -5,8 +5,10 @@ COMMON_EXCLUDE=--exclude "__pycache__" --exclude "venv/" --exclude ".git" --excl
|
|||||||
install:
|
install:
|
||||||
git config core.hooksPath ./tools/git/hooks/
|
git config core.hooksPath ./tools/git/hooks/
|
||||||
python -m venv ~/.venv/enseignements/
|
python -m venv ~/.venv/enseignements/
|
||||||
source ~/.venv/enseignements/bin/activate.fish
|
( \
|
||||||
pip install -r requirements.txt
|
. ~/.venv/enseignements/bin/activate;\
|
||||||
|
pip install -r requirements.txt;\
|
||||||
|
)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
git clean -idx -e venv/ -e video/
|
git clean -idx -e venv/ -e video/
|
||||||
|
2
requirements.txt
Normal file
2
requirements.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
restructuredtext-lint
|
||||||
|
gitpython
|
@ -11,7 +11,7 @@ Git hook to ensure validity of all rst files
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from git import Repo
|
from git import Repo
|
||||||
from path import Path
|
from pathlib import Path
|
||||||
import re
|
import re
|
||||||
import time
|
import time
|
||||||
import restructuredtext_lint
|
import restructuredtext_lint
|
||||||
|
Loading…
Reference in New Issue
Block a user