projects
/
grml-scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release new version 2.11.0
[grml-scripts.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
c122c0f
..
bcbfe07
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-22,7
+22,7
@@
pythoncheck: ## Run pythoncheck (flakecheck, isortcheck + blackcheck)
@RETURN=0
@for pythonfile in usr_bin/* usr_sbin/* usr_share/*; do
@ if head -1 "$${pythonfile}" | grep -q "python"; then
@RETURN=0
@for pythonfile in usr_bin/* usr_sbin/* usr_share/*; do
@ if head -1 "$${pythonfile}" | grep -q "python"; then
- @ flake8 "$${pythonfile}" || RETURN=1
+ @ flake8
--max-line-length 88
"$${pythonfile}" || RETURN=1
@ isort --check "$${pythonfile}" || RETURN=1
@ black --check "$${pythonfile}" || RETURN=1
@ fi
@ isort --check "$${pythonfile}" || RETURN=1
@ black --check "$${pythonfile}" || RETURN=1
@ fi
@@
-34,7
+34,7
@@
flakecheck: ## Run flake8 only
@RETURN=0
@for pythonfile in usr_bin/* usr_sbin/* usr_share/*; do
@ if head -1 "$${pythonfile}" | grep -q "python"; then
@RETURN=0
@for pythonfile in usr_bin/* usr_sbin/* usr_share/*; do
@ if head -1 "$${pythonfile}" | grep -q "python"; then
- @ flake8 "$${pythonfile}" || RETURN=1
+ @ flake8
--max-line-length 88
"$${pythonfile}" || RETURN=1
@ fi
@done
@exit $${RETURN}
@ fi
@done
@exit $${RETURN}