generated from APA2527/qgis-report-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformat_code.sh
More file actions
executable file
·22 lines (18 loc) · 810 Bytes
/
format_code.sh
File metadata and controls
executable file
·22 lines (18 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
###########################################################################
# #
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 2 of the License, or #
# (at your option) any later version. #
# #
###########################################################################
set -e
##### PYTHON
cd report
PYFILES=$(find . -maxdepth 1 -type f -name "*.py" )
for i in $PYFILES; do
echo "$i"
autopep8 --in-place --ignore=E261,E265,E402,E501 "$i"
done
cd ..