|
|
|
@ -151,7 +151,7 @@ serve: ### démarre un serveur local pour l'application
@@ -151,7 +151,7 @@ serve: ### démarre un serveur local pour l'application
|
|
|
|
|
$(PYTHON) manage.py runserver |
|
|
|
|
|
|
|
|
|
lint: ### vérifie la syntaxe et le code python
|
|
|
|
|
which black > /dev/null && black --check gaby ; true |
|
|
|
|
which black > /dev/null && black --config black.toml --check gaby ; true |
|
|
|
|
$(PYTHON) -m isort --check --recursive gaby ; true |
|
|
|
|
flake8 gaby |
|
|
|
|
@echo "check debug flag" |
|
|
|
@ -170,7 +170,7 @@ isort: ### reformat the code using black
@@ -170,7 +170,7 @@ isort: ### reformat the code using black
|
|
|
|
|
|
|
|
|
|
#PRC#
|
|
|
|
|
black: ### reformat the code using black
|
|
|
|
|
which black > /dev/null && black gaby |
|
|
|
|
which black > /dev/null && black --config black.toml gaby |
|
|
|
|
|
|
|
|
|
#PRC#
|
|
|
|
|
pre-commit: isort black lint test ### useful before commit: reformat the code (black), lint it, test it
|
|
|
|
|