Skip to content

Commit b84bfa2

Browse files
committed
Add npm job "fix" to run the formatters
1 parent de5bd74 commit b84bfa2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

project/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"scripts": {
66
"watch": "npm i && bower install && gulp watch",
77
"build": "npm i && bower install && gulp",
8-
"build_noninteractive": "npm i && bower --config.interactive=false install && gulp"
8+
"build_noninteractive": "npm i && bower --config.interactive=false install && gulp",
9+
"fix": "PREFIX=\"# -*- coding: utf-8 -*-\"; find . -name '._*' | xargs rm ; for f in $(find . -name '*.py' -and -not -path '*/venv/*'); do echo \"=================\" ; echo $f; autopep8 -ri --max-line-length=10000 $f; flake8 $f; isort -rc $f; grep -qFe \"$PREFIX\" $f || echo \"$PREFIX\n$(cat $f)\" > $f ; done "
910
},
1011
"repository": {
1112
"type": "git",

0 commit comments

Comments
 (0)